Skip to content

Commit

Permalink
BUG: allow different objectives
Browse files Browse the repository at this point in the history
Signed-off-by: DerWeh <andreas.weh@web.de>
  • Loading branch information
DerWeh committed Mar 13, 2024
1 parent 22fcbe5 commit ac45540
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/interpret-core/interpret/glassbox/_ebm/_ebm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ class ExplainableBoostingClassifier(EBMModel, ClassifierMixin, ExplainerMixin):
Bagged intercept of the model. Binary classification is shape ``(n_outer_bags,)``, and multiclass is shape ``(n_outer_bags, n_classes)``.
"""

objective: Literal["log_loss"] = "log_loss"
objective: str = "log_loss"

classes_: np.ndarray = field(init=False) # np.int64, np.bool_, or np.unicode_, 1D[class]

Expand Down Expand Up @@ -2436,7 +2436,7 @@ class ExplainableBoostingRegressor(EBMModel, RegressorMixin, ExplainerMixin):
The maximum value found in 'y'.
"""

objective: Literal["rmse"] = "rmse"
objective: str = "rmse"

intercept_: float = field(init=False)
min_target_: float = field(init=False)
Expand Down

0 comments on commit ac45540

Please sign in to comment.