SHAP解释器SE共3篇

Error in ifelse(decision_type %in% c(“>=”, “>”), ret.second(split_index), :Unknown decision_type

【报错原因】 对于lightgbm 数据存在数值类别,变成字符类别 【解决方法】 https://github.com/ModelOriented/treeshap/issues/28
里里里里卡42的头像-决策链社区论坛里里里里卡423天前
07715
Error: You should have at least two distinct break values.        Value cannot be null. (Parameter 's')-决策链社区论坛

Error: You should have at least two distinct break values. Value cannot be null. (Parameter ‘s’)

【报错原因】模型拟合问题【解决方法】更换模型或变量
里里里里卡42的头像-决策链社区论坛里里里里卡423天前
03514
Error in gbm.unify(model, data):Models built on data with categorical features are not supported - please encode them before training.-决策链社区论坛

Error in gbm.unify(model, data):Models built on data with categorical features are not supported – please encode them before training.

【报错原因】 类别数据需要encode 【解决方法】 前面链接 独热编码+标签转换编码+转换变量类型 进行encode
里里里里卡42的头像-决策链社区论坛里里里里卡423天前
0726