【发布时间】:2021-03-08 15:16:00
【问题描述】:
我想知道我的随机森林在 h2o R 版本中的袋内训练指标:
rf_cv = h2o.randomForest(x = x, y = y,
training_frame = cali,
ntrees = 800,
nfolds = 5,
mtries = 3,
seed = 98)
当我打印得分历史时,我会得到以下训练指标:
> rf_cv@model$scoring_history
number_of_trees training_rmse training_mae training_deviance
1 0.70767 0.45476 0.50080
...
800 0.47283 0.30862 0.22357
但这些指标来自现成样本,如性能摘要所示:
> h2o.performance(rf_cv)
H2ORegressionMetrics: drf
** Reported on training data. **
** Metrics reported on Out-Of-Bag training samples **
MSE: 0.2235729
RMSE: 0.4728349
MAE: 0.3086151
RMSLE: 0.1403068
Mean Residual Deviance : 0.2235729
我知道我可以使用h2o.performance(rf_cv, data = train) 获得整体袋内训练表现,但我需要得分历史记录。我浏览了文档并寻找了类似的问题,但到目前为止我一无所获。任何帮助将不胜感激。
【问题讨论】:
标签: r random-forest h2o