Indices exchange in plot_spikes function#415
Indices exchange in plot_spikes function#415Hananel-Hazan merged 1 commit intoBindsNET:masterfrom ruteee:master
Conversation
… time param, and n_neurons vary from 0 to the number of neurons at each layer
|
Grate Thank you |
|
When I run the example code at the end of this tutorial I get incorrect output; the number of neurons and time are switched, it seems to be as a result of this PR. When I reverse what was done here, I get the correct output. I see this is related to the reservoir mnist example. Perhaps this is a problem in data formatting in the reservoir mnist example, or maybe some style changed and the example in that tutorial must be updated, I am not sure. |
|
Thanks @davidAmiron for pointing it out, you are right, the reservoir example had wrong plotting dimensions. Fixed in #417 Regarding the code in the tutorial, its seems running fine Let me know if you have more issues |
|
Hi, David. I did the PR for this update. I tested the code example of the tutorial you mentioned and you are right the indices seem to be switched. However if run reservoir example with indices switched back to their original positions (like the old version), the plot_spikes and the plot_voltages generate the incorrect output. That is with the neurons in the place of time, and vice-versa. I agree there is probably something happening in data formatting in the reservoir example. I apologize for the mistake and suggest the reversion of PR. |
|
@Hananel-Hazan should I do the PR for undoing the modification? |
|
I have a branch with the changes in it if you would like me to submit it |
|
@davidAmiron can you post a screenshot of the plot issue you having? |
|
Running the example from the tutorial on master, I have the following: |
|
I am sorry, I dont get the same plotting. Are you sure you are using the latest update? The screenshots that I getting from the tutorial look fine, they are posted here. |
|
Hmm. I am working directly off of master. If you are using a previous pip installation maybe #415 isn't on your machine, because it is only 12 days old? |
|
Sorry, something went wrong with my GitHub merge that mask this update. @ruteee please revert the change. Thank you @davidAmiron for pointing it out |
|
yes, for sure. |


Indices exchange in plot_spikes function, so that time varies from 0 to time param, and n_neurons vary from 0 to the number of neurons at each layer.