Spaces:
Sleeping
Sleeping
MilesCranmer
commited on
Commit
•
a232b56
1
Parent(s):
5174135
Revert "Add test for DaemonMode"
Browse filesThis reverts commit 038eaaf8f9edf0b85a36754b623f194cab7351c8.
- test/test.py +12 -15
test/test.py
CHANGED
@@ -69,21 +69,18 @@ class TestPipeline(unittest.TestCase):
|
|
69 |
best_callable()[1](self.X), self.X[:, 1] ** 2, decimal=4
|
70 |
)
|
71 |
|
72 |
-
def
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
)
|
85 |
-
|
86 |
-
self.assertLessEqual(equations.iloc[-1]["MSE"], 1e-4)
|
87 |
|
88 |
def test_noisy(self):
|
89 |
|
|
|
69 |
best_callable()[1](self.X), self.X[:, 1] ** 2, decimal=4
|
70 |
)
|
71 |
|
72 |
+
def test_empty_operators_single_input(self):
|
73 |
+
X = np.random.randn(100, 1)
|
74 |
+
y = X[:, 0] + 3.0
|
75 |
+
equations = pysr(
|
76 |
+
X,
|
77 |
+
y,
|
78 |
+
unary_operators=[],
|
79 |
+
binary_operators=["plus"],
|
80 |
+
**self.default_test_kwargs,
|
81 |
+
)
|
82 |
+
|
83 |
+
self.assertLessEqual(equations.iloc[-1]["MSE"], 1e-4)
|
|
|
|
|
|
|
84 |
|
85 |
def test_noisy(self):
|
86 |
|