Moffran / calibrated_explanations

Repository for the explanation method Calibrated Explanations (CE)
BSD 3-Clause "New" or "Revised" License
39 stars 5 forks source link

Checks are not made for model fitting #15

Closed tuvelofstrom closed 10 months ago

tuvelofstrom commented 10 months ago

Describe the bug When creating a CalibratedExplainer with an unfitted model, an uncaught error occurs.

To Reproduce Steps to reproduce the behavior: Initialize a CalibratedExplainer without first fitting the underlying model. The same will likely happen if a DifficultyEstimator is not fitted before being assigned.

Expected behavior Check if fitted. If not, generate an error with a description of what caused the error.

tuvelofstrom commented 10 months ago

This issue was solved with 1a0e3634c5c1dc665ba13a4b0e2e11016f29ab99 and subsequent commits