From: Chih-Jen Lin Date: Fri, 27 Mar 2020 10:26:27 +0000 (+0800) Subject: init_sol in the parameter structure was introduced earlier but no explanation in... X-Git-Tag: v240~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35df5164da9ac5c80e0027ef58f51b2367b3cd2b;p=liblinear init_sol in the parameter structure was introduced earlier but no explanation in README. Now added --- diff --git a/README b/README index fff84c9..d78d6b4 100644 --- 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(). diff --git a/linear.cpp b/linear.cpp index 1204ced..3bdb114 100644 --- a/linear.cpp +++ b/linear.cpp @@ -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; iinit_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; }