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
Presets #1077
Conversation
I added the WIP label because other people might want to add more presets? |
What do people think about a |
I think |
Added a changelog entry which should make this ready for review. It was decided at one of the dev meetings to go ahead with this PR. New PRs can be opened for additional presets. Only remaining thing might be to add some general documentation? But not sure where. |
Note that the Travis-CI test failure is unrelated to this PR, but I don't want to restart the job to keep the documentation for the corresponding issue #1011. |
Hm. I think probably we need a new section in the user guide between the modelling API and the networks for user-facing config system documentation and presets. I'd be OK with leaving this for a separate PR! |
This PR LGTM! I added a commit fixing some reST formatting and grammar. In our API docs, we use a default Python role of "object", so the I also renamed the preset to with ThresholdingEnsembles(0.5):
ens = nengo.Ensemble(50, 1) gives more of a clue of what happens than with ThresholdingPreset(0.5):
ens = nengo.Ensemble(50, 1) partly because the |
This still LGTM. |
Addresses #1058.
Description:
Adds a thresholding preset as discussed in #1058. Other people are welcome to add their presets.
Motivation and context:
See #1058.
How has this been tested?
The thresholding preset is being used in the spa-rat model @ikajic and me are working on. I also implemented a unit test.
How long should this take to review?
It's a small PR, shouldn't take long to review.
Where should a reviewer start?
nengo/presets.py
, look intonengo/tests/test_presets.py
for a usage example.Types of changes:
Checklist:
and I have updated the documentation accordingly.
Still to do: