【发布时间】:2018-12-21 07:11:33
【问题描述】:
rf = RandomForestRegressor()
grid = GridSearchCV(rf,param_grid=param_grid,cv=3,n_jobs=8)
grid.fit(train_X,train_y)
我像上面的代码一样使用 RandomForestRegressor。而且,我想得到 train_error。我该怎么做?
更具体地说:(1)我可以从 RandomForestRegressor 中得到“train_error”吗? (2) 如果我使用“the mean_squared_error”,如何得到训练数据的预测值。
我的问题的一些图片。
【问题讨论】:
标签: python random-forest mse