MilesCranmer / PySR

High-Performance Symbolic Regression in Python and Julia
https://astroautomata.com/PySR
Apache License 2.0
2.08k stars 198 forks source link

[Feature]: How to get the value of a constant in a fixed expression #630

Closed zmy3767 closed 1 month ago

zmy3767 commented 1 month ago

Feature Request

Hi, thanks for developing the helpful tool. I want to use pysr to get the values of the constants C1 and C2 in the following fixed expression: y=(1-C1)*x1/(x2+1)+x3/(C2+1) x1,x2,x3,y are known data sets. How should I use pysr to get the constant C1 and C2? Thanks!