12 #ifndef MULTICLASSSTRATEGY_H__
13 #define MULTICLASSSTRATEGY_H__
66 return "MulticlassStrategy";
91 SG_REF(rejection_strategy);
CMulticlassLabels * m_orig_labels
original multiclass labels
virtual void rescale_outputs(SGVector< float64_t > outputs, const SGVector< float64_t > As, const SGVector< float64_t > Bs)
virtual void rescale_outputs(SGVector< float64_t > outputs)
#define SG_NOTIMPLEMENTED
CRejectionStrategy * m_rejection_strategy
rejection strategy
CRejectionStrategy * get_rejection_strategy()
void set_prob_heuris_type(EProbHeuristicType prob_heuris)
int32_t m_num_classes
number of classes in this problem
Multiclass Labels for multi-class classification.
EProbHeuristicType m_prob_heuris
prob output heuristic
int32_t m_train_iter
index of current iterations
void set_num_classes(int32_t num_classes)
Class SGObject is the base class of all shogun objects.
virtual void train_stop()
virtual int32_t get_num_machines()=0
base rejection strategy class
virtual const char * get_name() const
int32_t get_num_classes() const
all of classes and functions are contained in the shogun namespace
CBinaryLabels * m_train_labels
labels used to train the submachines
void set_rejection_strategy(CRejectionStrategy *rejection_strategy)
Binary Labels for binary classification.
virtual ~CMulticlassStrategy()
class MulticlassStrategy used to construct generic multiclass classifiers with ensembles of binary cl...
virtual bool train_has_more()=0
virtual SGVector< int32_t > train_prepare_next()
virtual SGVector< index_t > decide_label_multiple_output(SGVector< float64_t > outputs, int32_t n_outputs)
virtual void train_start(CMulticlassLabels *orig_labels, CBinaryLabels *train_labels)
virtual int32_t decide_label(SGVector< float64_t > outputs)=0
EProbHeuristicType get_prob_heuris_type()