abstract class CrystalML::Tree::DecisionTree
Direct Known Subclasses
Defined in:
utils/tree.crConstructors
Instance Method Summary
- #build_tree(data : Tensor(Float64, CPU(Float64)), target : Tensor(Float64, CPU(Float64)), depth : Int32) : Node
- #fit(data : Tensor(Float64, CPU(Float64)), target : Tensor(Float64, CPU(Float64)))
- #max_depth : Int32
- #max_depth=(max_depth : Int32)
- #min_size : Int32
- #min_size=(min_size : Int32)
- #predict(data : Tensor(Float64, CPU(Float64))) : Tensor(Float64, CPU(Float64))
- #print_tree
- #print_tree_recursive(node : Tree::Node | Nil, depth : Int32)
- #root : Node | Nil
- #root=(root : Node | Nil)
Instance methods inherited from class CrystalML::SupervisedEstimator
fit(data : Tensor(Float64, CPU(Float64)), target : Tensor(Float64, CPU(Float64)))fit(data : Tensor(Float64, CPU(Float64)) | Array(Array(Float64)) | Crysda::DataFrame, target : Tensor(Float64, CPU(Float64)) | Array(Array(Float64)) | Array(Float64) | Crysda::DataFrame) fit
Constructor Detail
Instance Method Detail
abstract
def build_tree(data : Tensor(Float64, CPU(Float64)), target : Tensor(Float64, CPU(Float64)), depth : Int32) : Node
#
def fit(data : Tensor(Float64, CPU(Float64)), target : Tensor(Float64, CPU(Float64)))
#