If your model is called m
, then to get just the number of epochs trained: last(m@model$scoring_history$epochs)
To see what other information is available (which is literally everything you can see in the Flow interface) and how to access it, use str(m)
Also be aware of this command: summary(m)
In addition to what is shown with print(m)
it adds this section (for a deeplearning model):
Scoring History:
timestamp duration training_speed epochs iterations samples training_MSE training_deviance training_r2
1 2016-04-14 11:35:46 0.000 sec 0.00000 0 0.000000
2 2016-04-14 11:35:52 5.218 sec 15139 rows/sec 10.00000 1 77150.000000 0.00000 0.00000 0.07884
...
7 2016-04-14 11:36:18 31.346 sec 25056 rows/sec 100.00000 10 771500.000000 0.00000 0.00000 0.72245
I.e. You can see total number of epochs by looking at the last row.
BTW, this is different to h2o's summary()
command when applied to a data frame; in that case it behaves like R's built-in summary function, and shows statistics on each column in the data frame.