question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Symbolic deep learning

See original GitHub issue

Trying 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:open
  • Created 3 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
MilesCranmercommented, Mar 13, 2021

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

1reaction
abdalazizrashidcommented, Mar 8, 2021

@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.

scrn-2021-03-08-23-32-34

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found