MilesCranmer commited on
Commit
bfd7114
2 Parent(s): 50f37a0 b13cd4f

Merge pull request #132 from MilesCranmer/deepsource-transform-9db962a5

Browse files
Files changed (2) hide show
  1. pysr/sr.py +0 -1
  2. test/test.py +1 -1
pysr/sr.py CHANGED
@@ -1176,7 +1176,6 @@ class PySRRegressor(BaseEstimator, RegressorMixin):
1176
  nested_constraints_str += ")"
1177
  nested_constraints = Main.eval(nested_constraints_str)
1178
 
1179
-
1180
  if not already_ran:
1181
  Main.eval("using Pkg")
1182
  io = "devnull" if self.params["update_verbosity"] == 0 else "stderr"
 
1176
  nested_constraints_str += ")"
1177
  nested_constraints = Main.eval(nested_constraints_str)
1178
 
 
1179
  if not already_ran:
1180
  Main.eval("using Pkg")
1181
  io = "devnull" if self.params["update_verbosity"] == 0 else "stderr"
test/test.py CHANGED
@@ -174,7 +174,7 @@ class TestPipeline(unittest.TestCase):
174
  Xresampled=Xresampled,
175
  denoise=True,
176
  select_k_features=2,
177
- nested_constraints={"/": {"+": 1, "-": 1}, "+": {"*": 4}}
178
  )
179
  model.fit(X, y)
180
  self.assertNotIn("unused_feature", model.latex())
 
174
  Xresampled=Xresampled,
175
  denoise=True,
176
  select_k_features=2,
177
+ nested_constraints={"/": {"+": 1, "-": 1}, "+": {"*": 4}},
178
  )
179
  model.fit(X, y)
180
  self.assertNotIn("unused_feature", model.latex())