monte-flora / scikit-explain

A user-friendly python package for computing and plotting machine learning explainability output.
MIT License
30 stars 4 forks source link

Issue with sklearn models that have decision_function #23

Closed monte-flora closed 2 years ago

monte-flora commented 2 years ago

At the moment, skexplain only works on models that have a .predict or .predict_proba method. However, models like the support vector machines use a decision_function. Consider raising an error or attempting to incorporate that functionality into skexplain.

monte-flora commented 2 years ago

For the moment, we raise an error if the estimator does not have .predict or .predict_proba.