I have a rather simple question, but have not been able to find a documented solution anywhere.
I'm currently building a pipeline with H2O models and as part of the process I need to write some basic information about each trained model into a table.
Let's say I have something like:
model = H2ODeepLearningEstimator(...)
model.train(...)
After doing this, I want to pull the type of model from the model
object. I.e, I am looking for something like:
model.getType()
which then returns a string "H2ODeepLearningEstimator"
or equivalently "deeplearning"
which H2O appears to use internally as the model type identifier. I would also like to get other details, such as whether it was a regression or classification model. I don't see a parameter where this information is exposed.
if I run model.save_model_details
for example, I get:
H2ODeepLearningEstimator : Deep Learning
Model Key: Grid_DeepLearning_py_4_sid_a02a_model_python_1502450758585_2_model_0
ModelMetricsRegression: deeplearning
** Reported on train data. **
MSE: 19.5334650304
RMSE: 4.4196679774
MAE: 1.44489752843
RMSLE: NaN
Mean Residual Deviance: 19.5334650304
ModelMetricsRegression: deeplearning
** Reported on validation data. **
...
...
Presumably model.save_model_details
builds up this summary from individual parameters. I would like to access these (and similar) parameters directly via the model
object (for performance metrics this is possible via model.mse()
, model.mae()
etc.)