Skip to content

Commit

Permalink
Fix decorator typo GBR
Browse files Browse the repository at this point in the history
  • Loading branch information
mandjevant committed Nov 20, 2023
1 parent 840cfc9 commit 111279d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hpsklearn/components/ensemble/_gb.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def _name(msg):
msg="Invalid parameter '%s' with value '%s'. Parameter value must be within [0.0, 1.0]")
@validate(params=["loss"],
validation_test=lambda param: not isinstance(param, str) or param in ("squared_error", "absolute_error",
"huber" or "quantile"),
"huber", "quantile"),
msg="Invalid parameter '%s' with value '%s'. "
"Choose 'squared_error', 'absolute_error', 'huber' or 'quantile'.")
def gradient_boosting_regressor(name: str,
Expand Down

0 comments on commit 111279d

Please sign in to comment.