ITE operator and continuity on operators #902
Unanswered
Vahan-tech
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Q1: No need for operators to be continuous. It can help if they are though, as the constant optimisation is smoother. max and min are continuous, but cond is not. Q2: Not sure I understand, could you give an example? Q3: What you should do is return
Then the evaluation will automatically flag invalid inputs and eliminate those expressions. |
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
-
Hello to everyone, I have some questions i was not able to answer from myself from the documentation.
Does pysr takes into account the continuity of the expression while using operators like max, min, cond ?
Or to get something that is continuos i should use something like
"smoothed_max(x, y) = 0.5*(x + y + sqrt((x - y)^2 + 1e-6f0))"?
The other question is that sometimes i get ITE operation even if i don't have any "conditional" operator like max,min, cond and the logical ones, it is normal ?
Last question is a bit off-topic with respect to the title and is about fractional user defined operators.
As an example i write something like
"poly3(x) = x/(x^3 + x^2 + x)"
and for example the regression chose poly3(x) but the feature x start from 0, pysr doesn't take in account that the operator poly3 is not defined in 0 right ? So i am obbligated to add at least a +1f0 to the denominator? Or there are better solutions ?
Beta Was this translation helpful? Give feedback.
All reactions