Skip to content

Commit

Permalink
Fixed MALSAR clustered LR fallback (affects #1360)
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Feb 13, 2014
1 parent 961427a commit dea8e10
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ bool CMultitaskClusteredLogisticRegression::train_machine(CFeatures* data)
#else
SG_WARNING("Clustered LR is unstable with C++11\n")
m_tasks_w = SGMatrix<float64_t>(((CDotFeatures*)features)->get_dim_feature_space(), options.n_tasks);
m_tasks_w.set_const(0);
m_tasks_c = SGVector<float64_t>(options.n_tasks);
m_tasks_c.set_const(0);
#endif
#else
SG_WARNING("Please install Eigen3 to use MultitaskClusteredLogisticRegression\n")
Expand Down

0 comments on commit dea8e10

Please sign in to comment.