Spaces:
Running
Running
deepsource-autofix[bot]
commited on
Commit
•
b13cd4f
1
Parent(s):
50f37a0
Format code with black
Browse filesThis commit fixes the style issues introduced in 50f37a0 according to the output
from black.
Details: https://deepsource.io/gh/MilesCranmer/PySR/transform/4ba37a50-24bf-4f71-8630-6a8794e45183/
- 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())
|