I'm a newbie in PHP object. so I want to make random forest classification. I have a problem to print out the tree decision tree in my classification.
in this case my result classification :
[tree:protected] => Phpml\Classification\DecisionTree\DecisionTreeLeaf Object
(
[value] => <= 3.45
[numericValue] => 3.45
[operator] => <=
[columnIndex] => 1
[leftLeaf] =>
[rightLeaf] =>
[records] => Array
(
[0] => 0
[1] => 1
[2] => 2
)
[classValue] => late
[isTerminal] => 1
[isContinuous] => 1
[giniIndex] => 0.44444444444444
[level] => 0
)
how can I just print 3.45, the colomindex=1,
late, the gini index, and the level?
I want to use that value to build a decision tree.