Dear Mentor,
Below statement not understandable. can you please elaborate what does it mean ?
Set the index idx
into the list of examples
- Using the for-loop, walk through the shuffled list of dinosaur names in the list “examples.”
- For example, if there are n_e examples, and the for-loop increments the index to n_e onwards, think of how you would make the index cycle back to 0, so that you can continue feeding the examples into the model when j is n_e, n_e + 1, etc.
- Hint: (n_e + 1) % n_e equals 1, which is otherwise the ‘remainder’ you get when you divide (n_e + 1) by n_e.
-
%
is the [modulo operator in python]