MilesCranmer commited on
Commit
1969cde
1 Parent(s): f068a46

Remove check of deprecated kwarg

Browse files
Files changed (1) hide show
  1. pysr/sr.py +0 -3
pysr/sr.py CHANGED
@@ -239,9 +239,6 @@ def pysr(X=None, y=None, weights=None,
239
  if constraints is None:
240
  constraints = {}
241
 
242
- if nrestarts != None:
243
- optimizer_nrestarts = nrestarts
244
-
245
  assert optimizer_algorithm in ['NelderMead', 'BFGS']
246
 
247
  if isinstance(X, pd.DataFrame):
 
239
  if constraints is None:
240
  constraints = {}
241
 
 
 
 
242
  assert optimizer_algorithm in ['NelderMead', 'BFGS']
243
 
244
  if isinstance(X, pd.DataFrame):