All Base julia operators that take 1 or 2 float32 as input, and output a float32 as output, are available. A selection of these and other valid operators are stated below.
atanh_clip (=atanh((x+1)%2 - 1)),
Instead of passing a predefined operator as a string,
you can define with by passing it to the
pysr function, with, e.g.,
PySRRegressor( ..., unary_operators=["myfunction(x) = x^2"], binary_operators=["myotherfunction(x, y) = x^2*y"] )
Make sure that it works with
Float32 as a datatype. That means you need to write
1.5e3, if you write any constant numbers.
Your operator should work with the entire real line (you can use
abs(x) for operators requiring positive input - see
the search code will experience domain errors.