Sigmoid custom operator #680
-
Hello, I want to add a new unary operator when defining my PySRRegressor, which is the sigmoid function. I define it as follows:
I get the following error:
Do you have any ideas on how to resolve this error? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
MilesCranmer
Jul 26, 2024
Replies: 1 comment
-
It's because |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
YoannBonnet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's because
np.exp
is not a sympy function. You need to usesympy.exp