]> granicus.if.org Git - liblinear/commit
linear.cpp (check_parameter): only check value of p if L2R_L2LOSS_SVR.
authorDavid Miguel Susano Pinto <carandraug+dev@gmail.com>
Tue, 14 Sep 2021 14:02:02 +0000 (15:02 +0100)
committerChih-Jen Lin <cjlin@csie.ntu.edu.tw>
Wed, 15 Sep 2021 01:44:32 +0000 (09:44 +0800)
commit13d4a25803d1562a75cafb22fc760f9fbd731c17
tree65a9140b2fec1c4c7c285af3b01ff13491071aea
parent5a140892fe73030640c18be040845982f38f3b23
linear.cpp (check_parameter): only check value of p if L2R_L2LOSS_SVR.

The parameter `p` is only used by the L2R_L2LOSS_SVR solver so skip
checking its value unless using it.  This is important because it has
no default value meaning that we are effectively forcing the user to
set it even if they don't use it.

Signed-off-by: Chih-Jen Lin <cjlin@csie.ntu.edu.tw>
linear.cpp