h2o SHAP借助MOJO预测贡献

时间:2020-04-23 10:08:46

标签: h2o shap

每个版本(https://www.h2o.ai/blog/h2o-release-3-26-yau/)都可以从MOJO中检索SHAP值。但是,其中没有诸如h2o.mojo_predict_contributions之类的功能?

一旦导入模型:gbm_m=h2o.import_mojo('GBM_model_R.zip')h2o.predict_contributions(gbm_m,data)运行(注意数据已经是h2o数据帧并且h20集群处于活动状态)。下面是输出:

enter image description here

还有另一个链接(http://docs.h2o.ai/sparkling-water/2.2/latest-stable/doc/tutorials/shap_values.html),除了起泡水h2o版本以外,它没有提供有关如何检索SHAP值的明确指南。我们如何直接用MOJO对象提取SHAP值而无需剥离集群,例如h2o.mojo_predict_df

0 个答案:

没有答案