Skip to content

Commit

Permalink
Merge pull request #1753 from hushell/develop
Browse files Browse the repository at this point in the history
fix a bug in structure_factor_graph_model.py
  • Loading branch information
Soeren Sonnenburg committed Nov 10, 2013
2 parents 4341231 + ed2ac84 commit 71fa844
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -122,7 +122,8 @@ def structure_factor_graph_model(tr_samples = samples, tr_labels = labels, w = w
#print w_truth

# evaluation
lbs_bmrm = LabelsFactory.to_structured(bmrm.apply())
eva_bmrm = bmrm.apply()
lbs_bmrm = LabelsFactory.to_structured(eva_bmrm)
acc_loss = 0.0
ave_loss = 0.0
for i in xrange(num_samples):
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/structure/StochasticSOSVM.h
Expand Up @@ -52,7 +52,7 @@ class CStochasticSOSVM : public CLinearStructuredOutputMachine

/** get classifier type
*
* @return classifier type CT_PRIMALMOSEKSOSVM
* @return classifier type CT_STOCHASTICSOSVM
*/
virtual EMachineType get_classifier_type();

Expand Down

0 comments on commit 71fa844

Please sign in to comment.