24 SG_ERROR(
"%s::store_model_features(): kernel is needed to store SV "
31 SG_ERROR(
"%s::store_model_features(): kernel lhs is needed to store "
48 for (
index_t i=0; i<sv_idx.vlen; ++i)
54 kernel->
init(sv_features, rhs);
virtual void add_machine_subset(SGVector< index_t > subset)
virtual bool init(CFeatures *lhs, CFeatures *rhs)
int32_t get_num_support_vectors()
int32_t index_of(const T &element)
CMachine * get_machine(int32_t num) const
void set_kernel(CKernel *k)
The class Labels models labels, i.e. class assignments of objects.
virtual ~CKernelMulticlassMachine()
CDynamicObjectArray * m_machines
#define SG_NOTIMPLEMENTED
int32_t get_num_elements() const
A generic KernelMachine interface.
virtual int32_t get_num_vec_lhs()
A generic learning machine interface.
Class SGObject is the base class of all shogun objects.
the class CSet, a set based on the hash-table. w: http://en.wikipedia.org/wiki/Hash_table ...
experimental abstract generic multiclass machine class
bool set_support_vector(int32_t idx, int32_t val)
virtual int32_t get_num_rhs_vectors()
virtual CMachine * get_machine_from_trained(CMachine *machine)
virtual const char * get_name() const
int32_t get_support_vector(int32_t idx)
virtual int32_t get_num_vec_rhs()
T * get_element_ptr(int32_t index)
all of classes and functions are contained in the shogun namespace
virtual bool init_machine_for_train(CFeatures *data)
CKernelMulticlassMachine()
virtual CFeatures * copy_subset(SGVector< index_t > indices)
The class Features is the base class of all feature objects.
virtual bool init_machines_for_apply(CFeatures *data)
int32_t get_num_elements() const
void add(const T &element)
CSGObject * get_element(int32_t index) const
class MulticlassStrategy used to construct generic multiclass classifiers with ensembles of binary cl...
void set_kernel(CKernel *k)
virtual void store_model_features()
virtual void remove_machine_subset()