Residuals of Random Forest Regression (Python)
There is no function for that, as we like to keep the interface very simple.
You can just do
y - rf.predict(X)
When using RandomForestRegressor from Sklearn, how do you get the residuals of the regression? I would like to plot out these residuals to check the linearity.