]> granicus.if.org Git - liblinear/commitdiff
Remove redundant trailing whitespace in linear.cpp, python/liblinearutil.py and tron.cpp
authorjohncreed <hsiajuiyang5174@gmail.com>
Thu, 27 Jun 2019 03:53:17 +0000 (11:53 +0800)
committerjohncreed <hsiajuiyang5174@gmail.com>
Thu, 27 Jun 2019 03:53:17 +0000 (11:53 +0800)
linear.cpp
python/liblinearutil.py
tron.cpp

index 063e01c028285c01699e298b87031308e7cf2840..5bdc328d9408ad89d6d3e1b9ab8df654820ceac8 100644 (file)
@@ -2716,11 +2716,11 @@ void find_parameters(const problem *prob, const parameter *param, int nr_fold, d
                if(start_C <= 0)
                        start_C = calc_start_C(prob, &param_tmp);
                double max_C = 1024;
-               start_C = min(start_C, max_C);          
+               start_C = min(start_C, max_C);
                double best_C_tmp, best_score_tmp;
-               
+
                find_parameter_C(prob, &param_tmp, start_C, max_C, &best_C_tmp, &best_score_tmp, fold_start, perm, subprob, nr_fold);
-               
+
                *best_C = best_C_tmp;
                *best_score = best_score_tmp;
        }
@@ -2744,9 +2744,9 @@ void find_parameters(const problem *prob, const parameter *param, int nr_fold, d
                                start_C_tmp = start_C;
                        start_C_tmp = min(start_C_tmp, max_C);
                        double best_C_tmp, best_score_tmp;
-                       
+
                        find_parameter_C(prob, &param_tmp, start_C_tmp, max_C, &best_C_tmp, &best_score_tmp, fold_start, perm, subprob, nr_fold);
-                       
+
                        if(best_score_tmp < *best_score)
                        {
                                *best_p = param_tmp.p;
@@ -2961,7 +2961,7 @@ struct model *load_model(const char *model_file_name)
        // parameters for training only won't be assigned, but arrays are assigned as NULL for safety
        param.nr_weight = 0;
        param.weight_label = NULL;
-       param.weight = NULL;    
+       param.weight = NULL;
        param.init_sol = NULL;
 
        model_->label = NULL;
index ffb161a41a8f58dafbd0efbfbb653a2adb3599f2..a768ecf0424c11f600c3b06e9f89b638c888c1fe 100644 (file)
@@ -14,7 +14,7 @@ if sys.version_info[0] < 3:
        from itertools import izip as zip
        _cstr = lambda s: s.encode("utf-8") if isinstance(s,unicode) else str(s)
 else:
-       _cstr = lambda s: bytes(s, "utf-8")        
+       _cstr = lambda s: bytes(s, "utf-8")
 
 __all__ = ['load_model', 'save_model', 'train', 'predict'] + liblinear_all + common_all
 
index c9292ca11c970b048a121fdbd1a6e6474395c070..2e0cb24958c22a2e09fefda25635858f3d683f1c 100644 (file)
--- a/tron.cpp
+++ b/tron.cpp
@@ -265,7 +265,7 @@ int TRON::trpcg(double delta, double *g, double *M, double *s, double *r, bool *
 
        if (cg_iter == max_cg_iter)
                info("WARNING: reaching maximal number of CG steps\n");
-       
+
        delete[] d;
        delete[] Hd;
        delete[] z;