Class: HybridForest::Trees::TreeGrowers::CARTGrower
- Inherits:
-
Object
- Object
- HybridForest::Trees::TreeGrowers::CARTGrower
- Defined in:
- lib/hybridforest/trees/tree_growers/cart_grower.rb
Instance Method Summary collapse
- #grow_tree(instances) ⇒ Object
-
#initialize(feature_selector: RandomFeatureSubspace.new, impurity_metric: GiniImpurity.new) ⇒ CARTGrower
constructor
A new instance of CARTGrower.
Constructor Details
#initialize(feature_selector: RandomFeatureSubspace.new, impurity_metric: GiniImpurity.new) ⇒ CARTGrower
Returns a new instance of CARTGrower.
18 19 20 21 |
# File 'lib/hybridforest/trees/tree_growers/cart_grower.rb', line 18 def initialize(feature_selector: RandomFeatureSubspace.new, impurity_metric: GiniImpurity.new) @impurity_metric = impurity_metric @feature_selector = feature_selector end |