Evoked activity? #100
-
This is maybe a silly question, but would these GLM models work for activity that's evoked? Like, if there's a stimulus protocol where current steps are injected at different amplitudes? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, they do! We currently have a tutorial about this on the website from our February 2024 workshop, which we'll be integrating into this repo soon. Is that what you meant? (Note that if you want to try and follow along with that tutorial, the version used for the workshop uses a different version of the |
Beta Was this translation helpful? Give feedback.
Yes, they do! We currently have a tutorial about this on the website from our February 2024 workshop, which we'll be integrating into this repo soon. Is that what you meant?
(Note that if you want to try and follow along with that tutorial, the version used for the workshop uses a different version of the
GLM
object API, where theX
/ predictor andy
/ target inputs toGLM.fit
are 2d and 1d, respectively, while the currentmain
requires them to be 3d and 2d (the extra dimension is for neurons). We're probably going to integrate that API version, but you'll need to add an extra dimension for now with an extrapredictor = np.expand_dims(predictor, 1)
andcount = np.expand_dims(count, 1)
bef…