NeuromatchAcademy / course-content

NMA Computational Neuroscience course

Home Page:https://compneuro.neuromatch.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deep Learning: tutorial 3, possible zscore axis inconsistency with mathematical formulation

alceballosa opened this issue · comments

Hi, I was reviewing the materials for W2D1_Tutorial3, specifically Section 2.1 (see the screenshot). This indicates that the mean and stdev are calculated for every stimulus (row-wise). However, in the corresponding code, zscore is applied across the columns (axis = 1, that is: for every neuron). Is this a mistake in the original code or am I interpreting things wrong?

imagen

Here is the code where the zscore function is called as part of the RDM function:

imagen

I believe the axis should be 0 so that the mean and stdev are calculated for the responses to each stimuli, but I'm not 100% sure.

Thanks in advance!