class CrystalML::Tree::Node

Defined in:

utils/tree.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(feature_index : Int32 | Nil = nil, threshold : Float64 | Nil = nil, left : Node | Nil = nil, right : Node | Nil = nil, value : Float64 | Nil = nil) #

[View source]

Instance Method Detail

def feature_index : Int32 | Nil #

[View source]
def feature_index=(feature_index : Int32 | Nil) #

[View source]
def is_leaf? : Bool #

[View source]
def left : Node | Nil #

[View source]
def left=(left : Node | Nil) #

[View source]
def right : Node | Nil #

[View source]
def right=(right : Node | Nil) #

[View source]
def threshold : Float64 | Nil #

[View source]
def threshold=(threshold : Float64 | Nil) #

[View source]
def value : Float64 | Nil #

[View source]
def value=(value : Float64 | Nil) #

[View source]