Comments (4)
OK, I'll make PR when my implementation is stabilized enough. It may take some time.
from bindsnet.
I understand what you've said, but I still think there's some problem with updating process. The process that I expect is like this.
- Network is simulated for certain number of timesteps.
- Based on calculated output, agent interacts with picked action and then gets observation and reward.
- Network updates its parameter based on reward given by environment
However, current implementation that I understand is
- iterate a., b. for
timesteps
a. Network is simulated for single timestep
b. Network's parameter is updated for single timestep based on reward given by previous interaction with environment - Based on calculated output, agent interacts with picked action and then gets observation and reward.
The problem of current implementation is that update based on reward can be only applied after single timestep of simulation. Where I expect the update should be done before any simulation timestep.
from bindsnet.
This is intended; typically, the environment takes a step, and then the agent takes a step, then the environment, ... as in the typical RL setup. The network can "tick" (or, run a simulation timestep) multiple times when it's called in between calls to the environment.
It might be interesting to allow reward
to be either a float
or a torch.Tensor
; that is, a sequence of rewards, one for every simulation timestep. This could encompass your use-case: set reward = torch.tensor([1, 0, 0, 0, 0])
for a network with simulation time 5, and reward-modulated STDP with reward 1.
This is also conceptually simpler than adding yet another flag variable.
from bindsnet.
Hm, that's interesting. Could you put together a PR to this effect? I can imagine, like you say, that some learning rules could be applied in a batch-like manner, where the updates only occur after a chunk of simulation time (rather than per simulation timestep).
This is already possible in experimental scripts: you can perform arbitrary updates to connection weights of your Network
object between calls to pipeline.step()
. However, it would be nice to have some sort of functionality for this built into BindsNET.
from bindsnet.
Related Issues (20)
- Low accuracy HOT 9
- SWAT: A Spiking Neural Network Training Algorithm for Classification Problems HOT 1
- A (serious) bug preventing RL algorithms to work HOT 4
- Has anyone manage to make one of the RL examples to work? HOT 2
- Saving, loading, and performing prediction from supervised examples HOT 1
- Is there any way to use BindsNet on RTX 3090? HOT 1
- 'bindsnet' is not recognized as an internal or external command, operable program or batch file. HOT 2
- How would I run this type of setup? HOT 2
- Reservoir issues!
- Network converted from ANN doesn't retain weights after training? HOT 3
- Question: Can it be used for speech emotion recognition task? HOT 1
- Does the `poisson` function under-produce spikes? HOT 13
- THE DEAD NEURON PROBLEM HOT 14
- ModuleNotFoundError: No module named 'torch._six' HOT 5
- Is SingleEncoder timing-based? HOT 7
- Are learning rules such as gradient descent available? HOT 1
- ModuleNotFoundError: No module named 'torch._six' HOT 4
- Columns and DataType Not Explicitly Set on line 18 of plot_benchmark.py
- How backpropagation work? HOT 6
- Using bindsnet for temperature prediction? 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 bindsnet.