Skip to content

Commit

Permalink
Update ValueError param definition
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Mar 25, 2023
1 parent 07e3605 commit 2fa6a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysr/sr.py
Expand Up @@ -1247,7 +1247,7 @@ def _validate_and_set_init_params(self):
)

if self.loss is not None and self.full_objective is not None:
raise ValueError("You cannot set both `loss` and `objective`.")
raise ValueError("You cannot set both `loss` and `full_objective`.")

# NotImplementedError - Values that could be supported at a later time
if self.optimizer_algorithm not in VALID_OPTIMIZER_ALGORITHMS:
Expand Down

0 comments on commit 2fa6a85

Please sign in to comment.