Is their any way to show random forest as nonlinear using suppose 100 attributes. Actually I compared the accuracy of J48 with Random forest. Random forest works better as given works better for Nonlinear so how to prove or show it.
is their any way to show random forest as nonlinear using suppose 100 attributes
287 views Asked by Srikanth Mudale At
1
First a simple proof that RF can capture some non-linear signal:
As the randomForest can fit the non-linear signal, explained variance 85% ( out-of-bag cross validated) it is hereby empirically shown.
Second you can inspect any curvature of any random forest model with following example:
I use forestFloor package to visualize the RF model trained on a data set sample from the hidden non-linear function:
y = f(x) ={x_1}^2 + sin(x_2) + x_3 * x_4 where X is sampled from a normal distribution. As the found curvature reproduces the non-linear hidden function