32 #ifndef _RANDOMCARTREE_H__
33 #define _RANDOMCARTREE_H__
35 #include <shogun/lib/config.h>
37 #include <shogun/multiclass/tree/TreeMachine.h>
60 virtual const char*
get_name()
const {
return "MyRandomCARTree"; }
90 virtual index_t
compute_best_attribute(
const SGMatrix<float64_t>& mat,
const SGVector<float64_t>& weights, CDenseLabels* labels,
91 SGVector<float64_t>& left, SGVector<float64_t>& right, SGVector<bool>& is_left_final, index_t &num_missing,
92 index_t &count_left, index_t &count_right, float64_t& IG, index_t subset_size=0,
const SGVector<index_t>& active_indices=SGVector<index_t>());
This class implements randomized CART algorithm used in the tree growing process of candidate trees i...
virtual index_t compute_best_attribute(const SGMatrix< float64_t > &mat, const SGVector< float64_t > &weights, CDenseLabels *labels, SGVector< float64_t > &left, SGVector< float64_t > &right, SGVector< bool > &is_left_final, index_t &num_missing, index_t &count_left, index_t &count_right, float64_t &IG, index_t subset_size=0, const SGVector< index_t > &active_indices=SGVector< index_t >())
index_t m_randsubset_size
virtual const char * get_name() const
virtual ~CMyRandomCARTree()
index_t get_feature_subset_size() const
void set_feature_subset_size(index_t size)
CMyRandomCARTree * clone()