31 #ifndef _MYRANDOMFOREST_H__
32 #define _MYRANDOMFOREST_H__
34 #include <shogun/lib/config.h>
35 #include <shogun/machine/BaggingMachine.h>
61 virtual const char*
get_name()
const {
return "RandomForest"; }
This class implements the Random Forests algorithm. In Random Forests algorithm, we train a number of...
SGVector< bool > get_feature_types() const
std::vector< double > feature_importances()
void set_probabilities(CLabels *labels, CFeatures *data=NULL)
virtual bool train_machine(CFeatures *data=NULL)
virtual void set_machine_parameters(CMachine *m, SGVector< index_t > idx)
int32_t get_num_random_features() const
SGVector< float64_t > m_weights
virtual EProblemType get_machine_problem_type() const
SGMatrix< float64_t > m_sorted_transposed_feats
virtual ~CMyRandomForest()
void set_num_random_features(int32_t rand_featsize)
virtual const char * get_name() const
void set_feature_types(SGVector< bool > ft)
SGVector< float64_t > get_weights() const
void set_machine_problem_type(EProblemType mode)
SGMatrix< index_t > m_sorted_indices
void set_weights(SGVector< float64_t > weights)