Is there a supported way to get list of features used by a H2O model during its training?

半城伤御伤魂 提交于 2019-12-06 18:16:25

If you want to know which feature columns the model used after you have built a model you can do the following in python:

my_training_frame = your_model.actual_params['training_frame']

which will return some frame id

and then you can do

col_used = h2o.get_frame(my_training_frame)
col_used

EDITED (after comment was posted)

to get the columns use: enter code herecol_used.columns

a quick way to check the version of a saved binary model is to try and load it into h2o, if it loads it is the same version of h2o, if it isn't you will get a warning.

you can also open the saved model file, the first line will list the version of H2O used to create it.

for a model saved as a mojo you can look at the model.ini file, it will list the version of H2O

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!