Spaces:
Sleeping
Sleeping
Commit
·
00122b5
1
Parent(s):
5750d1a
Fix denoising test
Browse files- test/test.py +3 -3
test/test.py
CHANGED
|
@@ -85,7 +85,7 @@ class TestPipeline(unittest.TestCase):
|
|
| 85 |
def test_noisy(self):
|
| 86 |
|
| 87 |
np.random.seed(1)
|
| 88 |
-
y = self.X[:, [0, 1]] ** 2 + np.random.randn(self.X.shape[0]) * 0.05
|
| 89 |
equations = pysr(
|
| 90 |
self.X,
|
| 91 |
y,
|
|
@@ -96,8 +96,8 @@ class TestPipeline(unittest.TestCase):
|
|
| 96 |
procs=0,
|
| 97 |
denoise=True,
|
| 98 |
)
|
| 99 |
-
self.assertLessEqual(best_row(equations=equations)[0]["MSE"], 1e-
|
| 100 |
-
self.assertLessEqual(best_row(equations=equations)[1]["MSE"], 1e-
|
| 101 |
|
| 102 |
|
| 103 |
class TestBest(unittest.TestCase):
|
|
|
|
| 85 |
def test_noisy(self):
|
| 86 |
|
| 87 |
np.random.seed(1)
|
| 88 |
+
y = self.X[:, [0, 1]] ** 2 + np.random.randn(self.X.shape[0], 1) * 0.05
|
| 89 |
equations = pysr(
|
| 90 |
self.X,
|
| 91 |
y,
|
|
|
|
| 96 |
procs=0,
|
| 97 |
denoise=True,
|
| 98 |
)
|
| 99 |
+
self.assertLessEqual(best_row(equations=equations)[0]["MSE"], 1e-2)
|
| 100 |
+
self.assertLessEqual(best_row(equations=equations)[1]["MSE"], 1e-2)
|
| 101 |
|
| 102 |
|
| 103 |
class TestBest(unittest.TestCase):
|