DeepPavlov
DeepPavlov copied to clipboard
Create a Trainer class for learning rate scheduling
For now learning rate scheduling is implemented using the LRScheduledModel class and its inheritors. It would be great to move this logic to a trainer class inherited from the NNTrainer class.
LRScheduledModel performs
- learning rate and momentum updating
- fitting of learning rate on a small subset of data (before main phase of training), see LRScheduledModel.fit for details.
FYI https://www.tensorflow.org/alpha/guide/keras/custom_callback#learning_rate_scheduling