-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unexpected Error Message in the notebook #63
Comments
Hi. I think I can shed some light. Couple solutions for you @chhetri22 .
But you can change the code really easy like. It's one line.
def explain_global(self, name=None): if name is None: name = gen_name_from_class(self) # Obtain min/max for model scores lower_bound = np.inf upper_bound = -np.inf for attribute_set_index, attribute_set in enumerate(self.attribute_sets_): errors = self.model_errors_[attribute_set_index] scores = self.attribute_set_models_[attribute_set_index] lower_bound = min(lower_bound, np.min(scores - errors)) upper_bound = max(upper_bound, np.max(scores + errors))
Cheers. |
Thanks @chhetri22 & @mikewlange - this should no longer be an issue. |
When running the Interpretable Classification Methods notebook, if explain_global or explain_local is called on ExplainableBoostingClassifier without fitting the model first, the NotFittedError is not raised. Instead an AttributeError is raised.
Similarly, when running the Interpretable Regression Methods notebook, if explain_global or explain_local is called on ExplainableBoostingRegressor without fitting the model first, the NotFittedError is not raised. Instead an AttributeError is raised.
The text was updated successfully, but these errors were encountered: