concept gradient in category data

appears as: gradients, gradients, gradient
Think Like a Data Scientist: Tackle the data science process step-by-step

This is an excerpt from Manning's book Think Like a Data Scientist: Tackle the data science process step-by-step.

Even more important is the backpropagation step. Consider when you did a simple feedforward network classifying MNIST digits: the gradients always backpropagated all the way through the network, right? They kept backpropagating until they reached the input data. This allowed the network to adjust every weight to try to learn how to correctly predict given the entire input example.

The recurrent example here is no different. You forward propagate through five input examples and then, when you later call loss.backward(), it backpropagates gradients all the way back through the network to the input datapoints. You can do this because you aren’t feeding in that many input datapoints at a time. But the Shakespeare dataset has 100,000 characters! This is way too many to backpropagate through for every prediction. What do you do?