Week 2 Assignment, Exercise 2, incorrect hint?

Hi, I just was wondering if this hint was intentionally left without the comma


Did it mean to say? (Because in the lines above, it shows it with a comma)


1 Like

Hi, @Yousif.

You’re right. Without the comma, it’s no longer slicing the column dimension, but rather slicing rows using the start:stop:step notation. As you guessed, it should read: mini_batch_X = shuffled_X[:, i:j].

Thank you for taking the time to report this!