Skip to content

Summation over n elements #198

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

You must be logged in to vote

Hi @DenisSvirin,

For problems like this, where you sum a function over a set, I recommend taking the approach specified in this paper: https://arxiv.org/abs/2006.11287 (youtube video here: https://www.youtube.com/watch?v=HKJB0Bjo6tQ).

The basic idea is you learn neural network of the form $y = f(\sum_i g(x_i))$. You would set $f$ and $g$ equal to multi-layer perceptrons. Optimize them, and then fit symbolic forms to their input and output. You can see an example of exactly this functional form in the last example of this PySR tutorial: https://colab.research.google.com/github/MilesCranmer/PySR/blob/master/examples/pysr_demo.ipynb (scroll to near the end).

For your operators, you would pro…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by DenisSvirin
Comment options

You must be logged in to vote
0 replies
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
3 participants