11 #ifndef _LINEARMULTICLASSMACHINE_H___
12 #define _LINEARMULTICLASSMACHINE_H___
26 class CMulticlassStrategy;
62 return "LinearMulticlassMachine";
99 SG_ERROR(
"No machine given in Multiclass constructor\n")
virtual int32_t get_num_rhs_vectors()
virtual void remove_machine_subset()
The class Labels models labels, i.e. class assignments of objects.
virtual bool init_machine_for_train(CFeatures *data)
virtual const char * get_name() const
CDynamicObjectArray * m_machines
virtual int32_t get_num_vectors() const =0
CDotFeatures * get_features() const
int32_t get_num_elements() const
virtual CMachine * get_machine_from_trained(CMachine *machine)
Features that support dot products among other operations.
CLinearMulticlassMachine(CMulticlassStrategy *strategy, CDotFeatures *features, CLinearMachine *machine, CLabels *labs)
A generic learning machine interface.
CLinearMulticlassMachine()
generic linear multiclass machine
Class SGObject is the base class of all shogun objects.
virtual bool init_machines_for_apply(CFeatures *data)
experimental abstract generic multiclass machine class
virtual void set_features(CDotFeatures *feat)
Class LinearMachine is a generic interface for all kinds of linear machines like classifiers.
all of classes and functions are contained in the shogun namespace
void set_features(CDotFeatures *f)
virtual void remove_subset()
virtual void store_model_features()
The class Features is the base class of all feature objects.
virtual void add_machine_subset(SGVector< index_t > subset)
CSGObject * get_element(int32_t index) const
class MulticlassStrategy used to construct generic multiclass classifiers with ensembles of binary cl...
CDotFeatures * m_features
virtual void add_subset(SGVector< index_t > subset)
virtual ~CLinearMulticlassMachine()