11 #ifndef RELAXEDTREE_H__
12 #define RELAXEDTREE_H__
27 class CBaseMulticlassMachine;
46 virtual const char*
get_name()
const {
return "RelaxedTree"; }
78 REQUIRE(lab,
"requires MulticlassLabes\n")
std::pair< std::pair< int32_t, int32_t >, float64_t > entry_t
The node of the tree structure forming a TreeMachine The node contains pointer to its parent and poin...
SGVector< float64_t > eval_binary_model_K(CSVM *svm)
void set_svm_epsilon(float64_t epsilon)
The class Labels models labels, i.e. class assignments of objects.
virtual bool train(CFeatures *data=NULL)
float64_t compute_score(SGVector< int32_t > mu, CSVM *svm)
void set_svm_C(float64_t C)
void set_machine_for_confusion_matrix(CBaseMulticlassMachine *machine)
virtual CMulticlassLabels * apply_multiclass(CFeatures *data=NULL)
float64_t apply_one(int32_t idx)
int32_t get_num_classes()
Multiclass Labels for multi-class classification.
SGVector< int32_t > train_node_with_initialization(const CRelaxedTree::entry_t &mu_entry, SGVector< int32_t > classes, CSVM *svm)
void enforce_balance_constraints_lower(SGVector< int32_t > &mu, SGVector< float64_t > &delta_neg, SGVector< float64_t > &delta_pos, int32_t B_prime, SGVector< float64_t > &xi_neg_class)
void set_features(CDenseFeatures< float64_t > *feats)
void set_max_num_iter(int32_t n_iter)
CDenseFeatures< float64_t > * m_feats
virtual const char * get_name() const
float64_t get_svm_epsilon() const
SGVector< int32_t > color_label_space(CSVM *svm, SGVector< int32_t > classes)
virtual bool train_machine(CFeatures *data)
float64_t get_svm_C() const
all of classes and functions are contained in the shogun namespace
void enforce_balance_constraints_upper(SGVector< int32_t > &mu, SGVector< float64_t > &delta_neg, SGVector< float64_t > &delta_pos, int32_t B_prime, SGVector< float64_t > &xi_neg_class)
bnode_t * train_node(const SGMatrix< float64_t > &conf_mat, SGVector< int32_t > classes)
The class Features is the base class of all feature objects.
virtual void set_kernel(CKernel *kernel)
virtual bool train(CFeatures *data=NULL)
A generic Support Vector Machine Interface.
int32_t get_max_num_iter() const
class TreeMachine, a base class for tree based multiclass classifiers. This class is derived from CBa...
virtual void set_labels(CLabels *lab)
virtual void set_labels(CLabels *lab)
std::vector< entry_t > init_node(const SGMatrix< float64_t > &global_conf_mat, SGVector< int32_t > classes)
CBaseMulticlassMachine * m_machine_for_confusion_matrix