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

Classification: recep_field.py #11

Open
sujay-pandit opened this issue Oct 8, 2019 · 2 comments
Open

Classification: recep_field.py #11

sujay-pandit opened this issue Oct 8, 2019 · 2 comments

Comments

@sujay-pandit
Copy link

In the convolution part of the code the boundary for the window needs to be made 27 and not 15.
#Convolution
for i in range(28):
for j in range(28):
summ = 0
for m in ran:
for n in ran:
if (i+m)>=0 and (i+m)<=27 and (j+n)>=0 and (j+n)<=27:
summ = summ + w[ox+m][oy+n]*inp[i+m][j+n]/255
pot[i][j] = summ
return pot

@rena-zhao
Copy link

yes,you are right!

@rao208
Copy link

rao208 commented May 6, 2022

Hi @sujay-pandit, it seems that you have figured out the code. If yes, then it would be great if you could help me. I think it is a great repository, but seeing the open issues and unanswered questions, I think the author is not active now, at least not on this repository.

Could you please help me to understand the following (if you know the answer)?

classification/classify.py

  1. Why is Pth set to 150? Why does it say "Should be Pth = 6 for deterministic spike train"?
  2. Why is T = 200?
  3. Why is w_max = 0.5 and w_min = -0.5?
  4. What is t_back, t_fore, T?

classification/neuron.py

  1. Is Pmin set to some random number?
  2. Difference between Prest and Pref?

classification/recep_field.py

  1. Is w = [[-0.5,-0.125, 0.25, -0.125, -0.5 ],
    [-0.125 , 0.25 , 0.625 , 0.25 , -0.125],
    [ 0.25 ,0.625 , 1. , 0.625 , 0.25 ],
    [-0.125 , 0.25 , 0.625 , 0.25, -0.125],
    [-0.5 , -0.125 , 0.25 , -0.125 ,-0.5 ]] randomly set?

Best Regard

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

3 participants