Symbolic regression with "conditional constants" #521
-
I would like to do symbolic regression on a dataset with two variables, say Any advice is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @mkellerressel, Great question. So the first thing I would suggest is trying the approach used here: https://arxiv.org/abs/2202.02306. This learns a mass parameter for each planet while simultaneously learning a model that takes those mass parameters as input. Then, finally, the neural network is approximated with symbolic regression. Now, to fit separate constants during symbolic regression itself (so you could solve this just with PySR/SR.jl), its not set up yet but I am planning to add this via MilesCranmer/SymbolicRegression.jl#271 as it would let you define custom types of trees — including trees that have a variable set of constants! Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hi @mkellerressel, I had the same problem and solved it with a custom loss function: The categorial group is passed as a nominal group as weights from pysr to the custom loss function. |
Beta Was this translation helpful? Give feedback.
Hey @mkellerressel,
Great question. So the first thing I would suggest is trying the approach used here: https://arxiv.org/abs/2202.02306. This learns a mass parameter for each planet while simultaneously learning a model that takes those mass parameters as input. Then, finally, the neural network is approximated with symbolic regression.
Now, to fit separate constants during symbolic regression itself (so you could solve this just with PySR/SR.jl), its not set up yet but I am planning to add this via MilesCranmer/SymbolicRegression.jl#271 as it would let you define custom types of trees — including trees that have a variable set of constants!
Cheers,
Miles