Spaces:
Running
Running
MilesCranmer
commited on
Update ValueError param definition
Browse files- pysr/sr.py +1 -1
pysr/sr.py
CHANGED
@@ -1247,7 +1247,7 @@ class PySRRegressor(MultiOutputMixin, RegressorMixin, BaseEstimator):
|
|
1247 |
)
|
1248 |
|
1249 |
if self.loss is not None and self.full_objective is not None:
|
1250 |
-
raise ValueError("You cannot set both `loss` and `
|
1251 |
|
1252 |
# NotImplementedError - Values that could be supported at a later time
|
1253 |
if self.optimizer_algorithm not in VALID_OPTIMIZER_ALGORITHMS:
|
|
|
1247 |
)
|
1248 |
|
1249 |
if self.loss is not None and self.full_objective is not None:
|
1250 |
+
raise ValueError("You cannot set both `loss` and `full_objective`.")
|
1251 |
|
1252 |
# NotImplementedError - Values that could be supported at a later time
|
1253 |
if self.optimizer_algorithm not in VALID_OPTIMIZER_ALGORITHMS:
|