forcing exp operator to be used in special form #1078
-
|
I'm working with PySR (latest version, using Julia backend) and I noticed that from pysr import PySRRegressor X = data model = PySRRegressor( model.fit(X, y) Even though the data clearly follows an exponential law, I have tried, Increasing niterations, population_size, and populations Adjusting complexity_of_operators={"exp": 1} Using only "exp" as unary operator At the end, even if exp shows up, it only shows up as exp(K) where K is a constant real number. I need to force "exp" operator to be used as exp (x1/x2) form where x1 and x2 the features given from the dataset. I want my analytical equation to be in exp(x1/x2) form but i never made it. Thanks for this amazing package |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
|
Does x2 ever get very close to 0? It could just blow up and hurt convergence, maybe. |
Beta Was this translation helpful? Give feedback.
Oh. I think I can figure it out by looking at your code. You have
dimensionless_constants_only=True. Which makes your problem impossible to solve. BecauseK * x4/x0has dimensions, and thereforeexp(K * x4 / x0)is invalid.Hope this helps!