You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~\AppData\Local\Temp\ipykernel_12944\3777221198.py in<cell line: 2>()
1 Eq_No_tps = 21
----> 2 model_tps.sympy(Eq_No_tps)
D:\Python310Install\lib\site-packages\pysr\sr.py in sympy(self, index)
2424 SymPy representation of the best equation.
2425 """-> 2426 if not self.expression_spec_.supports_sympy: 2427 raise ValueError( 2428 f"`expression_spec={self.expression_spec_}` does not support sympy export."D:\Python310Install\lib\site-packages\pysr\sr.py in expression_spec_(self) 1312 @property 1313 def expression_spec_(self):-> 1314 return self.expression_spec or ExpressionSpec() 1315 1316 def get_best(AttributeError: 'PySRRegressor' object has no attribute 'expression_spec'
Extra Info
No response
The text was updated successfully, but these errors were encountered:
Though I’m not sure it will work FYI. The underlying Julia backend changed so much between versions 0.19 and 1.0 that it might be completely incompatible with the old pickle file.
MilesCranmer
changed the title
[BUG]: Based on the model established in version 0.19. 4, after updating to version 1.3. 1, the "model_tps. sympy ()" code runs with "if not self.expression_spec_.supports_sympy:" and "return self.expression_spec or ExpressionSpec ()" error "AttributeError: 'PySRRegressor' object has no attribute 'expression_spec'" respectively.
[BUG]: Loading model from 0.19 on 1.3
Jan 8, 2025
What happened?
A bug happened!
Version
1.3.1
Operating System
Windows
Package Manager
pip
Interface
Jupyter Notebook
Relevant log output
Extra Info
No response
The text was updated successfully, but these errors were encountered: