Symbolic deep learning
See original GitHub issueTrying to recreate the examples from this paper PySR is always predicting scalars as a low complexity solution, which doesn’t make much sense, can you please elaborate on that? And what is wrong why I’m unable to get the right expression?
Cycles per second: 3.050e+03
Progress: 19 / 20 total iterations (95.000%)
Hall of Fame:
-----------------------------------------
Complexity Loss Score Equation
1 1.278e-01 -9.446e-02 -0.08741549
2 1.165e-01 9.256e-02 square(-0.18644808)
3 2.592e-02 1.503e+00 (x0 * -0.2923665)
5 1.682e-02 2.163e-01 ((-0.10430038 * x0) * x2)
8 1.576e-02 2.176e-02 (1.6735333 * sin((-0.067048885 * x0) * x2))
The code used to generate this is:
import numpy as np
from pysr import pysr, best
# Dataset
X = np.array(messages_over_time[-1][['dx', 'dy', 'r', 'm1', 'm2']]) # Taken from this notebook https://github.com/MilesCranmer/symbolic_deep_learning/blob/master/GN_Demo_Colab.ipynb
y = np.array(messages_over_time[-1]['e64'])
# Learn equations
equations = pysr(X, y, niterations=5,
binary_operators=["plus", "mult" , 'sub', 'pow', 'div'],
unary_operators=[
"cos", "exp", "sin", 'neg', 'square', 'cube', 'exp',
"inv(x) = 1/x"], batching=True, batchSize=1000)
print(best(equations))
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (7 by maintainers)
Top Results From Across the Web
Symbolic Deep Learning Explained - Papers With Code
This is a general approach to convert a neural network into an analytic equation. The technique works as follows:.
Read more >Symbolic Reasoning (Symbolic AI) and Machine Learning
Because deep learning models largely lack interpretability, symbolic learning enables models to cohabitate with human readable concepts.
Read more >Mimicking the brain: Deep learning meets vector-symbolic AI
To better simulate how the human brain makes decisions, we've combined the strengths of symbolic AI and neural networks.
Read more >Symbolic artificial intelligence - Wikipedia
Over the next several years, deep learning had spectacular success in handling vision, speech recognition, speech synthesis, image generation, and machine ...
Read more >Discovering Symbolic Models from Deep Learning with ... - arXiv
Abstract: We develop a general approach to distill symbolic representations of a learned deep model by introducing strong inductive biases.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I am confused about what the issue here could be. Want to email me to discuss this more? My email is miles
<dot>cranmer at gmail@MilesCranmer Thanks for the response. After training for 200 epochs this what I got, what do you think? Also, all this is a reproduction of what’s in the notebook.