Skip to content

Commit

Permalink
Added bias usage capability for crammer-singer liblinear
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Mar 8, 2012
1 parent db96f7c commit 0c71dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/classifier/svm/MulticlassLibLinear.cpp
Expand Up @@ -50,7 +50,7 @@ bool CMulticlassLibLinear::train_machine(CFeatures* data)
for (int32_t j=0; j<mc_problem.n-1; j++)
cw[j] = w[j*num_classes+i];
machine->set_w(SGVector<float64_t>(cw,mc_problem.n-1));
CMath::display_vector(cw,mc_problem.n);
//CMath::display_vector(cw,mc_problem.n);
machine->set_bias(w[(mc_problem.n-1)*num_classes+i]);

m_machines[i] = machine;
Expand Down

0 comments on commit 0c71dba

Please sign in to comment.