diff --git a/pysr/sr.py b/pysr/sr.py index a1aaf05d9..074cf6647 100644 --- a/pysr/sr.py +++ b/pysr/sr.py @@ -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: