34 void CMulticlassTreeGuidedLogisticRegression::init_defaults()
42 void CMulticlassTreeGuidedLogisticRegression::register_parameters()
67 slep_options options = slep_options::default_options();
72 for (int32_t i=0; i<n_classes; i++)
76 for (int32_t j=0; j<n_feats; j++)
77 all_w_old(j,i) = w[j];
81 options.last_result =
new slep_result_t(all_w_old,all_c_old);
90 options.ind_t = ind_t.
vector;
91 options.n_nodes = ind_t.
size()/3;
98 for (int32_t i=0; i<n_classes; i++)
101 for (int32_t j=0; j<n_feats; j++)
slep_result_t slep_mc_tree_lr(CDotFeatures *features, CMulticlassLabels *labels, float64_t z, const slep_options &options)
virtual ELabelType get_label_type() const =0
virtual void set_w(const SGVector< float64_t > src_w)
virtual SGVector< float64_t > get_SLEP_ind_t() const
The class Labels models labels, i.e. class assignments of objects.
class IndexBlockTree used to represent tree guided feature relation.
multi-class labels 0,1,...
CDynamicObjectArray * m_machines
int32_t get_num_elements() const
virtual SGVector< float64_t > get_SLEP_G()
void set_max_iter(int32_t max_iter)
Features that support dot products among other operations.
virtual int32_t get_dim_feature_space() const =0
CMulticlassTreeGuidedLogisticRegression()
Multiclass Labels for multi-class classification.
generic linear multiclass machine
CMulticlassStrategy * m_multiclass_strategy
virtual ~CMulticlassTreeGuidedLogisticRegression()
CIndexBlockTree * m_index_tree
Class LinearMachine is a generic interface for all kinds of linear machines like classifiers.
virtual SGVector< float64_t > get_w() const
all of classes and functions are contained in the shogun namespace
void set_features(CDotFeatures *f)
The class Features is the base class of all feature objects.
virtual float64_t get_bias()
CSGObject * get_element(int32_t index) const
virtual void set_bias(float64_t b)
void push_back(CSGObject *e)
CDotFeatures * m_features
virtual bool train_machine(CFeatures *data=NULL)
multiclass one vs rest strategy used to train generic multiclass machines for K-class problems with b...
void set_epsilon(float64_t epsilon)
void set_index_tree(CIndexBlockTree *index_tree)