Save the fitted model #119
-
Hi, Is there any way to save the fitted model? I tried to save as pickle by dumping
but the following message was thrown:
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Good question. I have never tried this, but note that PySR saves the equations to a csv file during the search. In the PySRRegressor model, this is set by So what you could do is get the equation file ( Let me know if this works! |
Beta Was this translation helpful? Give feedback.
-
One other option: use # import pickle as pkl
import dill as pkl This natively supports lambda functions, so it might work out of the box! (You might have to set |
Beta Was this translation helpful? Give feedback.
-
No, still the |
Beta Was this translation helpful? Give feedback.
-
Hi @vnikoofard, With v0.9.0 of PySR (#146), you can now pickle and unpickle the PySRRegressor without issue. Best, |
Beta Was this translation helpful? Give feedback.
Hi @vnikoofard,
With v0.9.0 of PySR (#146), you can now pickle and unpickle the PySRRegressor without issue.
Best,
Miles