Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Merge pull request #132 from MilesCranmer/deepsource-transform-9db962a5
Browse files- pysr/sr.py +0 -1
- 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())
|