Vectorizing Across Multiple Examples

Dear mentors,
I’ve got confused. In X matrix the vertical axes correspond to different features, which means for example that in my NN the 1st row could be a variable X=(temperature) and the 2nd row could be a variable y(Precipitation). both independent variables?

Yes, I think that’s right. The way that Prof Ng chooses to arrange the “samples” matrix, the columns are individual samples and the rows are the individual “features”.

1 Like