jdwittenauer / ipython-notebooks

A collection of IPython notebooks covering various topics.
2.61k stars 1.51k forks source link

Made a change to mean calculation #9

Closed shiredude95 closed 7 years ago

shiredude95 commented 7 years ago

Y[1,R[1,:]] was indexing over the columns given by R[1,:] which returns binary values and thereby iterating over indexes 0 and 1 of Y[1].

jdwittenauer commented 7 years ago

Good catch, thanks for noticing.