Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
b444c7e
1
Parent(s):
dca02e2
Fix JAX test
Browse files- test/test_jax.py +2 -1
test/test_jax.py
CHANGED
@@ -25,7 +25,7 @@ class TestJAX(unittest.TestCase):
|
|
25 |
X = np.random.randn(100, 10)
|
26 |
equations = pd.DataFrame(
|
27 |
{
|
28 |
-
"Equation": ["1.0", "cos(
|
29 |
"MSE": [1.0, 0.1, 1e-5],
|
30 |
"Complexity": [1, 2, 3],
|
31 |
}
|
@@ -45,6 +45,7 @@ class TestJAX(unittest.TestCase):
|
|
45 |
)
|
46 |
|
47 |
model.n_features = 2
|
|
|
48 |
model.refresh()
|
49 |
jformat = model.jax()
|
50 |
|
|
|
25 |
X = np.random.randn(100, 10)
|
26 |
equations = pd.DataFrame(
|
27 |
{
|
28 |
+
"Equation": ["1.0", "cos(x1)", "square(cos(x1))"],
|
29 |
"MSE": [1.0, 0.1, 1e-5],
|
30 |
"Complexity": [1, 2, 3],
|
31 |
}
|
|
|
45 |
)
|
46 |
|
47 |
model.n_features = 2
|
48 |
+
model.using_pandas = False
|
49 |
model.refresh()
|
50 |
jformat = model.jax()
|
51 |
|