Bounding the output function from PySR #211
-
Although I am successfully getting a function for our data - as expected - is there any way I could get an inequality for our data as an output of PySR, as well? Meaning, is there anyway I could bound the data …? E.g. if expected value calculated is <X, then satisfied, otherwise, not. Best, P.S. thoroughly enjoy using this software! |
Beta Was this translation helpful? Give feedback.
Answered by
MilesCranmer
Nov 1, 2022
Replies: 1 comment 1 reply
-
Thanks! Like this? model = PySRRegressor(loss="loss(x, y) = (x <= y) ? ((x-y)^2) : Inf") |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MilesCranmer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!
Like this?