]> granicus.if.org Git - liblinear/commitdiff
init_sol in the parameter structure was introduced earlier but no explanation in...
authorChih-Jen Lin <cjlin@csie.ntu.edu.tw>
Fri, 27 Mar 2020 10:26:27 +0000 (18:26 +0800)
committerChih-Jen Lin <cjlin@csie.ntu.edu.tw>
Fri, 27 Mar 2020 10:26:27 +0000 (18:26 +0800)
README
linear.cpp

diff --git a/README b/README
index fff84c9d9cfd5aa6a5ca9053d1b92853fe15ba03..d78d6b48529beaa9b921066e2bc57e66a03c6535 100644 (file)
--- a/README
+++ b/README
@@ -369,6 +369,7 @@ in linear.h, so you can check the version number.
                 int *weight_label;
                 double* weight;
                 double p;
+                double *init_sol;
         };
 
     solver_type can be one of L2R_LR, L2R_L2LOSS_SVC_DUAL, L2R_L2LOSS_SVC, L2R_L1LOSS_SVC_DUAL, MCSVM_CS, L1R_L2LOSS_SVC, L1R_LR, L2R_LR_DUAL, L2R_L2LOSS_SVR, L2R_L2LOSS_SVR_DUAL, L2R_L1LOSS_SVR_DUAL.
@@ -402,6 +403,10 @@ in linear.h, so you can check the version number.
     If you do not want to change penalty for any of the classes,
     just set nr_weight to 0.
 
+    init_sol includes the initial weight vectors (supported for only some
+    solvers). See the explanation of the vector w in the model
+    structure.
+
     *NOTE* To avoid wrong parameters, check_parameter() should be
     called before train().
 
index 1204ced892ebe52524b60c29a729b7a0d1402075..3bdb114d7bc69a6b496cfd71f776fe35339e8677 100644 (file)
@@ -2432,7 +2432,7 @@ static void find_parameter_C(const problem *prob, parameter *param_tmp, double s
        }
 
        if(param_tmp->C > max_C)
-               info("warning: maximum C reached.\n");
+               info("WARNING: maximum C reached.\n");
        free(target);
        for(i=0; i<nr_fold; i++)
                free(prev_w[i]);
@@ -3173,8 +3173,10 @@ const char *check_parameter(const problem *prob, const parameter *param)
                return "unknown solver type";
 
        if(param->init_sol != NULL
-               && param->solver_type != L2R_LR && param->solver_type != L2R_L2LOSS_SVC)
-               return "Initial-solution specification supported only for solver L2R_LR and L2R_L2LOSS_SVC";
+               && param->solver_type != L2R_LR
+               && param->solver_type != L2R_L2LOSS_SVC
+               && param->solver_type != L2R_L2LOSS_SVR)
+               return "Initial-solution specification supported only for solvers L2R_LR, L2R_L2LOSS_SVC, and L2R_L2LOSS_SVR";
 
        return NULL;
 }