Skip to content

Commit

Permalink
fix get_classifier in static interface for linear machines
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed May 12, 2012
1 parent c92b144 commit fd287f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/shogun/ui/GUIClassifier.cpp
Expand Up @@ -1385,11 +1385,12 @@ bool CGUIClassifier::get_linear(
brows=1;
bcols=1;

cols=1;
SGVector<float64_t> w=linear->get_w();
cols=1;
rows=w.vlen;

weights= SG_MALLOC(float64_t, w.vlen);
memcpy(weights, w.vector, sizeof(float64_t)*rows);
memcpy(weights, w.vector, sizeof(float64_t)*w.vlen);

return true;
}
Expand Down

0 comments on commit fd287f0

Please sign in to comment.