我在 h2o(R) 中有一个模型。它的性能产生
h2o.performance(models[[1]],valid=T)
给出输出
H2ORegressionMetrics: deeplearning
** Reported on validation data. **
Description: Metrics reported on temporary validation frame with 9724 samples
MSE: 1.18963
R2 : 0.07689513
Mean Residual Deviance : 1.18963
我想采用 MSE 并将其保存在变量中。我尝试使用生成混淆矩阵
h2o.confusionMatrix(h2o.performance(models[[i]],valid=T))
但它会生成 NULL。