Replies: 3 comments 1 reply
-
You can use the normal |
Beta Was this translation helpful? Give feedback.
-
Oh and just for posterity: you want to use Line 17 in d9f1057 |
Beta Was this translation helpful? Give feedback.
-
Oh sorry I didn't even read this part, my bad. Yeah I would do soft_abs(x::T) where {T} = sqrt(x^2 + T(1e-7)) (Why not just and then extra_sympy_mappings={"soft_abs": lambda x: sympy.sqrt(x ** 2 + 1e-7)} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
Dear,
I tried using PySR on a normalized data set between 0 and 1 for x and y values and I wanted to include a square root operator within the search. I attempted to do it by using only the absolute values of the variable abs(x), but this lead to not continous solutions. Therefore I tried to incorporate a smooth square root operator, but PySR does not accept it saying that it is not well defined. Even if I try to avoid taking values that are less then 0 (which they all should be) with only 5 iterations and it does not run through.
I have attached how I am setting up the regressor here:
Version
0.16.3
Operating System
Windows
Package Manager
Conda
Interface
Jupyter Notebook
Relevant log output
Extra Info
No response
Beta Was this translation helpful? Give feedback.
All reactions