Replies: 1 comment 1 reply
-
Unfortunately there isn't a "convenient" method for this, but I agree this would be nice to have. It would be perhaps the best to expose At the moment this is pretty hard unless you are willing to get your hands dirty with the Julia backend. But you can also get the expression object in other forms like sympy, pytorch, or jax, which permit you to extra the numerical constants directly, and then optimize with something like scipy. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, I would like to express my gratitude for providing such an excellent tool . However, as a beginner in both the Julia and PySR, I am unsure whether PySR already supports updating the constants of obtained expressions on new data. Although I noticed that you mentioned the optimize_constants tool in some discussions, as I previously stated, I am not proficient in using Julia.
Therefore, I would like to ask if there is a convenient method to re-optimize the parameters of an already obtained expression when applying it to new data. Currently, my approach involves manually redefining the function and then using a fitting method similar to least squares to achieve this.
Beta Was this translation helpful? Give feedback.
All reactions