Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added spiking to feedback notebooks #49

Merged
merged 1 commit into from
Dec 19, 2019
Merged

Conversation

xchoo
Copy link
Member

@xchoo xchoo commented Dec 18, 2019

  • Added spiking network versions to the integrator, simple oscillator, controlled oscillator, and chaotic attractor notebooks.
  • Modified controlled oscillator plot so that it would compute appropriate axis ticks even if the outputs were < 1. Previously, in this situation, there would only be one axis tick at 0.
  • Modified controlled oscillator speed plot so that the axis limits were dependent on the speed output, not the oscillator output.
  • Fixed pylint and flake8 errors with the notebooks.

Motivation and context:
The feedback notebooks did not demonstrate it working with spiking neurons. This PR addresses this concern.

How has this been tested?
Notebooks have been built on my local system. Everything seems to be as expected. Static CI script has also been run on the code to address flake8/pylint issues.

How long should this take to review?

  • Average (neither quick nor lengthy)

Where should a reviewer start?
Start by building the docs and looking at the integrator notebook.

Types of changes:

  • Bug fix (non-breaking change which fixes an issue)
  • Non-code change (touches things like tests, documentation, build scripts)

Checklist:

  • I have read the CONTRIBUTING.rst document.
  • I have updated the documentation accordingly.
  • I have included a changelog entry.
  • I have tested this with all supported devices.
  • I have added tests to cover my changes.
  • I have run the test suite locally and all tests passed.

docs/examples/notebooks/03-integrator.ipynb Outdated Show resolved Hide resolved
docs/examples/notebooks/03-integrator.ipynb Outdated Show resolved Hide resolved
docs/examples/notebooks/04-oscillator.ipynb Outdated Show resolved Hide resolved
docs/examples/notebooks/04-oscillator.ipynb Outdated Show resolved Hide resolved
docs/examples/notebooks/05-controlled-oscillator.ipynb Outdated Show resolved Hide resolved
docs/examples/notebooks/05-controlled-oscillator.ipynb Outdated Show resolved Hide resolved
docs/examples/notebooks/06-chaotic-attractor.ipynb Outdated Show resolved Hide resolved
docs/examples/notebooks/06-chaotic-attractor.ipynb Outdated Show resolved Hide resolved
docs/examples/notebooks/05-controlled-oscillator.ipynb Outdated Show resolved Hide resolved
Copy link
Contributor

@bmorcos bmorcos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed a couple rat-modes in the chaotic oscillator nb, otherwise looks great!

docs/examples/notebooks/06-chaotic-attractor.ipynb Outdated Show resolved Hide resolved
- Added spiking network versions to the
  integrator, simple oscillator, controlled
  oscillator, and chaotic attractor notebooks.
- Modified controlled oscillator plot so that
  it would compute appropriate axis ticks
  even if the outputs were < 1. Previously, in
  this situation, there would only be one axis
  tick at 0.
- Modified controlled oscillator speed plot
  so that the axis limits were dependent on the
  speed output, not the oscillator output.
- Fixed pylint and flake8 errors with the
  notebooks.
- Added blurb about difference in outputs between
  spiking and non-spiking networks.
@bmorcos bmorcos merged commit d30d415 into master Dec 19, 2019
@bmorcos bmorcos deleted the feedback_spiking_notebooks branch December 19, 2019 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants