DataLoader, Optimizer, Scheduler
Previous we have the dataset for ML. We also downloaded the model for ML. Here we specify how we can define the ML training process: feed data, set learning rate, set learning epochs
DataLoader: how our data will be feed into the model
Let’s say we have 5000 data, it is not realistic to feed all 5000 data to the model to learn at once, it is also not optimized to feed only 1 piece of data to the model each time (since batch gradient will have better performance in learning and prevent over fitting). Therefore, we need the concept of DataLoader. It help to specify how much data we feed into the model, and how those data are picker
Optimizer: how fast is the model going to learn
Optimizer specify the type of learning rate update algorithm for the model, as well as how fast this algorithm should update. Adam optimizer is generally a good choice.
Scheduler: tell the model how to train
Scheduler include the optimizer in its setting. It meant to tell the model general rules of the training: How many epochs to train, what’s the learning rate etc.
Last updated