Skip to content

Generalization to vector and tensor operators #181

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

You must be logged in to vote

Hi @auroreloisy,

Great question. Currently PySR only fits scalar equations, though you can fit multiple equations at the same time. Unfortunately this means in order to find a vector equation, you have to recognize the vector operations (like a dot product) by eye - and piece the scalar equations together manually.

Adopting PySR to vector operations is definitely possible; it’s just an engineering challenge. Take a look at the backend: MilesCranmer/SymbolicRegression.jl. You would basically need to modify it such that each operator has a specific input and output shape and use those to constrain whether a particular tree is valid or not.

Cheers,
Miles

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by auroreloisy
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