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

Q: Structured input in Poisson? #172

Closed
kingjr opened this issue Dec 31, 2018 · 2 comments
Closed

Q: Structured input in Poisson? #172

kingjr opened this issue Dec 31, 2018 · 2 comments
Assignees

Comments

@kingjr
Copy link
Contributor

kingjr commented Dec 31, 2018

Thanks for this fantastic package.

It seems that above certain value, the poisson encoder stops generating spikes. Is this expected because firing frequency is above sampling rate? I'm puzzled by the fact that top neurons keep firing, although it should be random.

from bindsnet.encoding import poisson
import matplotlib.pyplot as plt
import torch

plt.matshow(poisson(torch.tensor(range(100)).float()*100., 200))
plt.show()

image

@djsaunde djsaunde self-assigned this Dec 31, 2018
@djsaunde
Copy link
Collaborator

Hi @kingjr,

This is a good catch. I'm going to try to fix this today! Feel free to open a PR if you figure out a solution yourself.

@djsaunde
Copy link
Collaborator

It appears the bug was introduced since we upgraded to PyTorch 1.0.0. But, I was able to fix it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants