Skip to content

Is it possible to exclude variable from an operator, without altering the complexity? #226

Answered by MilesCranmer
Zhonglu asked this question in Q&A
Discussion options

You must be logged in to vote

For custom constraints like this, the best thing is to write a function that checks the underlying expressions explicitly. This can be done by modifying the backend as described on this page: https://astroautomata.com/PySR/backend/. You will want to edit the check_constraints function to perform this check.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Zhonglu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
PySR PySR-related discussion SymbolicRegression.jl SymbolicRegression.jl-related discussion
2 participants