, , overwrite_with_best_model=FALSE. , TRUE, , . , , h2o.grid m@model$scoring_history, .
epochs validation_classification_error
0.00000 0.46562
1.43150 0.50000
100.31780 0.46562
, overwrite_with_best_model=TRUE, , . , , :
epochsList = m@model$scoring_history$epochs
bestEpochIndex = which.min(m@model$scoring_history$validation_classification_error)
bestEpoch = epochsList[bestEpochIndex]
print(sprintf("The best epoch is: %d", bestEpoch))