Skip to content

Commit

Permalink
Fixed length of w vector in multiclass liblinaer
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed May 23, 2012
1 parent 4b848b4 commit 7bbda1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/multiclass/MulticlassLibLinear.cpp
Expand Up @@ -129,7 +129,7 @@ bool CMulticlassLibLinear::train_machine(CFeatures* data)
for (int32_t i=0; i<num_classes; i++)
{
CLinearMachine* machine = new CLinearMachine();
SGVector<float64_t> cw(mc_problem.n);
SGVector<float64_t> cw(mc_problem.n-bias_n);

for (int32_t j=0; j<mc_problem.n-bias_n; j++)
cw[j] = m_train_state->w[j*num_classes+i];
Expand Down

0 comments on commit 7bbda1c

Please sign in to comment.