Skip to content

Commit

Permalink
Fix the function solve_l2r_lr_dual failed, when set bias is true.
Browse files Browse the repository at this point in the history
  • Loading branch information
pl8787 committed Mar 6, 2014
1 parent 2973470 commit c54553f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/classifier/svm/LibLinear.cpp
Expand Up @@ -1170,7 +1170,7 @@ void CLibLinear::solve_l1r_lr(
void CLibLinear::solve_l2r_lr_dual(const liblinear_problem *prob, double eps, double Cp, double Cn)
{
int l = prob->l;
int w_size = prob->n;
int w_size = use_bias?prob->n-1:prob->n;
int i, s, iter = 0;
double *xTx = new double[l];
int max_iter = 1000;
Expand Down

0 comments on commit c54553f

Please sign in to comment.