如何从 h2o 中的 stackedsamble 获取所有基本模型
我在数据集上使用了 H2O 的 automl,顶部模型是 stackedensemble 模型。我喜欢获取所有基础模型及其堆叠模型的参数。我如何获得这个模型?
I used H2O's automl on my dataset, and the top model is a stackedensemble model. I like to get all basemodels with it's parameters of this stacked model. How do I get this models?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
aml.-leader
获得顶级模型,也可以使用 get_best_model 按照某些标准选择模型。如果要从排行榜中选择一些特定的模型,则可以使用h2o.get_model(“ model_id”)
(model_id来自排行榜)。为了从所有基本模型中获取参数,您可以使用以下内容:
您可能还希望从堆叠的集合和Metalearner中获取参数:
You can use
aml.leader
to get the top model or you can use get_best_model to pick the model by some criterium. If you want to pick some specific model from the leaderboard you can useh2o.get_model("model_id")
(the model_id is from the leaderboard).To get parameters from all the base models you can use the following:
You might also want to get parameters from the stacked ensemble and the metalearner: