[英]h2o model not subscriptable
我认为这是一个非常简单的问题-我想了解如何从python构建的h2o模型中提取元数据的各个位?
在RI中可以运行以下命令以获得此类信息。
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模型中获取此信息?
您有错别字-在thresholds_and_metric_scores
之后缺少单引号。
perf['metrics']['thresholds_and_metric_scores']
用dir()查找我需要的各种功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.