m0_61104322
2022-04-26 05:38
采纳率: 88.2%
浏览 357

AttributeError: 'numpy.ndarray' object has no attribute 'toarray'

用shap进行feature extraction 的时候,出现了报错:

X_test_arr = X_test.toarray()

AttributeError: 'numpy.ndarray' object has no attribute 'toarray'

请教大家如何解决?

2条回答 默认 最新

相关推荐 更多相似问题