Skip to content

Commit

Permalink
Fixes for eigen3 based multitask logistic regression classes
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Jul 17, 2012
1 parent 154176c commit 0771067
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/shogun/lib/slep/malsar_joint_feature_learning.cpp
Expand Up @@ -203,7 +203,7 @@ slep_result_t malsar_joint_feature_learning(
SGMatrix<float64_t> tasks_w(n_feats, n_tasks);
for (int i=0; i<n_feats; i++)
{
for (int task=0; task<n_tasks; task++)
for (task=0; task<n_tasks; task++)
tasks_w[i] = Wzp(i,task);
}
SGVector<float64_t> tasks_c(n_tasks);
Expand Down
Expand Up @@ -72,7 +72,7 @@ bool CMultitaskL1L2LogisticRegression::train_machine(CFeatures* data)
m_tasks_c = model.c;
#else
SG_WARNING("Please install Eigen3 to use MultitaskL1L2LogisticRegression\n");
m_tasks_w = SGMatrix<float64_t>(features->get_dim_features_space(), options.n_tasks);
m_tasks_w = SGMatrix<float64_t>(((CDotFeatures*)features)->get_dim_feature_space(), options.n_tasks);
m_tasks_c = SGVector<float64_t>(options.n_tasks);
#endif

Expand Down
Expand Up @@ -66,7 +66,7 @@ bool CMultitaskTraceLogisticRegression::train_machine(CFeatures* data)
m_tasks_c = model.c;
#else
SG_WARNING("Please install Eigen3 to use MultitaskTraceLogisticRegression\n");
m_tasks_w = SGMatrix<float64_t>(features->get_dim_features_space(), options.n_tasks);
m_tasks_w = SGMatrix<float64_t>((((CDotFeatures*)features)->get_dim_feature_space(), options.n_tasks);
m_tasks_c = SGVector<float64_t>(options.n_tasks);
#endif

Expand Down

0 comments on commit 0771067

Please sign in to comment.