Spaces:
Running
Running
Commit
·
6add8e3
1
Parent(s):
898f500
Fix hash string
Browse files- pysr/export.py +1 -1
pysr/export.py
CHANGED
@@ -148,7 +148,7 @@ def sympy2jax(equation, symbols_in):
|
|
148 |
"""
|
149 |
parameters = []
|
150 |
functional_form_text = sympy2jaxtext(equation, parameters, symbols_in)
|
151 |
-
hash_string = '
|
152 |
text = f"def {hash_string}(X, parameters):\n"
|
153 |
text += " return "
|
154 |
text += functional_form_text
|
|
|
148 |
"""
|
149 |
parameters = []
|
150 |
functional_form_text = sympy2jaxtext(equation, parameters, symbols_in)
|
151 |
+
hash_string = 'A_' + str(abs(hash(str(equation) + str(symbols_in))))
|
152 |
text = f"def {hash_string}(X, parameters):\n"
|
153 |
text += " return "
|
154 |
text += functional_form_text
|