[R] Random Forest tree labels

Elahe chalabi chalabi.elahe at yahoo.de
Thu Jan 4 21:45:21 CET 2018


Hi all, 


I have built a Random Forest using Caret package, however, I don't understand how the splits are labeled in trees. My dataset contains the frequency of the words in the speeches of the people:

'data.frame':	499 obs. of 608 variables:
$ alright : num 1 0 0 0 0 0 0 1 2 1 ...
$ bad : num 1 0 0 0 0 0 0 0 0 0 ...
$ boy : num 1 2 1 1 0 2 2 4 2 1 ...
$ cooki : num 1 2 2 1 0 1 1 4 2 3 ...
$ curtain : num 1 0 0 0 0 2 0 2 0 0 ...
$ dish : num 2 1 0 1 0 0 1 2 2 2 ...
$ doesnt : num 1 0 0 0 0 0 0 0 1 0 ...

why are splits labeled for example with 0.5?
Thanks for any help,

Elahe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree.PNG
Type: image/png
Size: 50718 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20180104/a000a148/attachment.png>


More information about the R-help mailing list