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

2D decoder place_fields are a fixed value along the Y dimension #35

Open
blakeporterneuro opened this issue Sep 7, 2024 · 4 comments
Open

Comments

@blakeporterneuro
Copy link

Version 1.3.15

When using the 2D decoder, I was getting odd decodes.
CA1_2D_acaus_MUA_event_299

I plotted the place fields decoder.plot_place_fields()
and saw my fields had stripes in the Y dimension. I checked and the values along the Y dimension are all identical.
Picture1

@edeno
Copy link
Contributor

edeno commented Sep 7, 2024

You're giving it 2D position of shape (n_time, 2)?

@blakeporterneuro
Copy link
Author

yeah, ndarray, n_time, 2

Array
trainingPosArray
Plotted
trainingPos

@blakeporterneuro
Copy link
Author

Shedding a little more light, the stripes only occur if you use the 'spiking_likelihood_glm' algo and does not occur if you use the 'spiking_likelihood_kde'. Though your paper implies the GLM is what should be used for sorted spikes?

_kde example
image

@edeno
Copy link
Contributor

edeno commented Sep 27, 2024

Ah sorry I did mean to investigate this. The KDE is fine here. I think the issue could be knot placement for the splines in the 2D case, which is sometimes tricky.

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