【发布时间】:2018-06-24 11:14:24
【问题描述】:
我认为一个相当简单的问题 - 我想了解如何从我用 python 构建的 h2o 模型中提取各种元数据?
在 R 中,我可以运行以下命令来获取此类信息。
my_h2o_model@algorithm
my_h2o_model@parameters
my_performance = h2o.performance(my_h2o_model)
my_performance@metrics$thresholds_and_metric_scores # awesome see all classifier metrics at each threshold
如果我尝试在 python 中
my_h2o_model['algorithm']
或
my_h2o_model[0]
perf=model_performance(my_h2o_model)
perf['metrics']['thresholds_and_metric_scores] # !!!!
TypeError: 'H2OGradientBoostingEstimator' 对象不可下标
如何从 python 中的模型中获取这些信息??
【问题讨论】: