marcotcr / lime

Lime: Explaining the predictions of any machine learning classifier
BSD 2-Clause "Simplified" License
11.4k stars 1.79k forks source link

Skmultilearn binary relevance produces sparse output. #727

Open MaazBinMusa opened 11 months ago

MaazBinMusa commented 11 months ago

While trying to explain a skmultilearn binary relevance model It kept throwing an error about output being sparse.

Changed a few lines of code to handle when classifier_fn produces sparse output.