rf = RandomForestRegressor()
grid = GridSearchCV(rf,param_grid=param_grid,cv=3,n_jobs=8)
grid.fit(train_X,train_y)
I use RandomForestRegressor like the codes above. And, I want to get the train_error. How can I do that?
to be more specific:(1)can I get the "train_error" from the RandomForestRegressor ? (2) If I use "the mean_squared_error", how can I get the predicted value of the train data.
some pictures for my question.