MilesCranmer commited on
Commit
2fa6a85
·
unverified ·
1 Parent(s): 07e3605

Update ValueError param definition

Browse files
Files changed (1) hide show
  1. 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 `objective`.")
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: