Replies: 1 comment 3 replies
-
you could restrict the "*" operator to just use a constant or a variable as arguments. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an application where I know that the data is generated by a multivariate polynomial (e.g.$a \cdot x_0 + b \cdot x_0 \cdot x_0 + c \cdot x_0 \cdot x_1$ ) up to order $degree_{max}$ (2 in example).$degree_{max}$ (e.g. for $degree_{max} = 2$ , an expression including the term $x_0 \cdot x_0 \cdot x_1$ should not be searched).
I want to restrict the pysr search space to not include polynomials with higher order than
Relevant pysr-settings:
Now, I do not understand how to set correct
constraints
/nested_constraints
/ complexities to restrict the search space.My idea was to restrict the usage of the
"*"
operator (note I am not using"^"
) to only allow for at most max_degree factors (but a constant should be allowed).Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions