SHAP解释器SE共4篇
SHAP解释器SE:Error in permshap.default(model rr, X= train set, feature names = xvars, : 
Permutation SHAP only supported for up to 14 features-决策链社区论坛

SHAP解释器SE:Error in permshap.default(model rr, X= train set, feature names = xvars, : Permutation SHAP only supported for up to 14 features

报错原因:该模型最多支持14个特征进行shap计算解决方法:压缩特征数量
空鱼O的头像-决策链社区论坛空鱼O23天前
05713

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

【报错原因】 对于lightgbm 数据存在数值类别,变成字符类别 【解决方法】 https://github.com/ModelOriented/treeshap/issues/28
里里里里卡42的头像-决策链社区论坛里里里里卡424个月前
011215
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的头像-决策链社区论坛里里里里卡424个月前
08314
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的头像-决策链社区论坛里里里里卡424个月前
01496