Skip to content

Commit

Permalink
Merge pull request #204 from hyperopt/gbr_loss
Browse files Browse the repository at this point in the history
Fix decorator typo GBR
  • Loading branch information
mandjevant committed Nov 20, 2023
2 parents 840cfc9 + 111279d commit d050420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hpsklearn/components/ensemble/_gb.py
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 d050420

Please sign in to comment.