You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pycaret_classification.py", line 15, in save_dashboard dashboard = generate_classifier_explainer_dashboard(self.exp, self.best_model) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/*/Galaxy-pycaret/Galaxy-Pycaret/tools/dashboard.py", line 74, in generate_classifier_explainer_dashboard explainer = ClassifierExplainer( ^^^^^^^^^^^^^^^^^^^^ File "/*/python3.11/site-packages/explainerdashboard/explainers.py", line 2462, in __init__ assert hasattr(model, "predict_proba"), ( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: for ClassifierExplainer, model should be a scikit-learn compatible *classifier* model that has a predict_proba(...) method, so not a <class 'sklearn.linear_model._ridge.RidgeClassifier'>! If you are using e.g an SVM with hinge loss (which does not support predict_proba), you can try the following monkey patch:
The text was updated successfully, but these errors were encountered:
pycaret_classification.py", line 15, in save_dashboard dashboard = generate_classifier_explainer_dashboard(self.exp, self.best_model) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/*/Galaxy-pycaret/Galaxy-Pycaret/tools/dashboard.py", line 74, in generate_classifier_explainer_dashboard explainer = ClassifierExplainer( ^^^^^^^^^^^^^^^^^^^^ File "/*/python3.11/site-packages/explainerdashboard/explainers.py", line 2462, in __init__ assert hasattr(model, "predict_proba"), ( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AssertionError: for ClassifierExplainer, model should be a scikit-learn compatible *classifier* model that has a predict_proba(...) method, so not a <class 'sklearn.linear_model._ridge.RidgeClassifier'>! If you are using e.g an SVM with hinge loss (which does not support predict_proba), you can try the following monkey patch:
The text was updated successfully, but these errors were encountered: