]> granicus.if.org Git - liblinear/commit
in solve_l1r_l2_svc, loss_old is initialized in a for loop over num_linesearch
authorChih-Jen Lin <cjlin@csie.ntu.edu.tw>
Tue, 18 Dec 2018 12:41:46 +0000 (20:41 +0800)
committerChih-Jen Lin <cjlin@csie.ntu.edu.tw>
Tue, 18 Dec 2018 12:41:46 +0000 (20:41 +0800)
commit5ee8c54e295513e234f2656870e90427b540654a
tree371339856afc7183c414386af73ed3b270c4d87e
parent3c2c061e59ec4fa4ca3c460eb866fe4dfe7ad056
in solve_l1r_l2_svc, loss_old is initialized in a for loop over num_linesearch
by
if(num_linesearch == 0)
Some compiler think it's not initialized.. Hence this change add loss_old = 0 when it's declared.
linear.cpp