Comments (10)
import brainpy as bp
import brainmodels
import matplotlib.pyplot as plt
neu1 = brainmodels.neurons.HH(1, monitors=['V'], name='X')
neu2 = brainmodels.neurons.HH(1, monitors=['V'])
syn1 = brainmodels.synapses.AMPA(neu1, neu2, bp.connect.All2All(), E=0., monitors=['s'])
net = bp.Network(neu1, syn1, neu2)
net.run(150., inputs=[('X.input', 5.)])
fig, gs = bp.visualize.get_figure(2, 1, 3, 8)
fig.add_subplot(gs[0, 0])
plt.plot(neu1.mon.ts, neu1.mon.V, label='pre-V')
plt.plot(neu2.mon.ts, neu2.mon.V, label='post-V')
plt.legend()
The code I run at this time.
https://brainmodels.readthedocs.io/en/latest/apis/synapses/ampa.html
from brainpy.
from brainpy.
from brainpy.
So thanks for your report, please update brainpy
to 1.1.0rc6
via
> pip install brain-py=1.1.0rc6
Please check, thanks.
from brainpy.
Thank you very much, a new problem appeared after installing brain-py=1.1.0rc6.
from brainpy.
from brainpy.
If I install ‘brainpy-simulator’ there will be new problem
from brainpy.
Please again, can you tell me your python environment and all packages。
from brainpy.
Dear @Rock-L21 , there is a bug in the monitor of AMPA. Please change the line
syn1 = brainmodels.synapses.AMPA(neu1, neu2, bp.connect.All2All(), E=0., monitors=['s'])
to
syn1 = brainmodels.synapses.AMPA(neu1, neu2, bp.connect.All2All(), E=0., monitors=['g'])
from brainpy.
Thank you again, the problem has been solved.
from brainpy.
Related Issues (20)
- Support ``reset()`` function in `DynamicalSystem` instance HOT 1
- Support training of SNN networks HOT 3
- Much easier way to write control flows HOT 1
- Documentation of control flows
- Compatibility with other JAX libraries
- ``brainpy.math.TimeDelay`` supports more efficient `indices`
- Support veterization and parallerization for class objects HOT 1
- Delay variable updating in synapse models seems wired
- Runner for dynamical systems using adaptive integrators
- High-dimensional analysis ``brainpy.analysis.FixedPointFinder`` should be generalized to mutiple variables HOT 1
- Using the official example“Training a spiking neural network”, brainpy cannot call GPU acceleration HOT 6
- How to Use Synaptic Weights HOT 2
- A kind of 'delay_step' setting in synapse could cause an error HOT 1
- A error will arise when use a slice of a neuron group as post group of a synapse. HOT 1
- Implementation of online training algorithms of SNNs HOT 2
- Documentation for enhanced parallel simulation APIs
- FixedTotalNum as subclass of FixedNum maybe better? HOT 1
- ``DynamicalSystem`` as a function HOT 3
- ImportError and circular dependency issue when running a decision-making network simulation HOT 2
- jax version >= 0.4.9 is not supported HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brainpy.