diff --git a/examples/undocumented/python_modular/structure_factor_graph_model.py b/examples/undocumented/python_modular/structure_factor_graph_model.py index dc3ad6f3aac..e553eb9e7a4 100644 --- a/examples/undocumented/python_modular/structure_factor_graph_model.py +++ b/examples/undocumented/python_modular/structure_factor_graph_model.py @@ -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): diff --git a/src/shogun/structure/StochasticSOSVM.h b/src/shogun/structure/StochasticSOSVM.h index 9f296882c89..128d5cfa187 100644 --- a/src/shogun/structure/StochasticSOSVM.h +++ b/src/shogun/structure/StochasticSOSVM.h @@ -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();