Skip to content

beringresearch/lrfinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of the LR Range test

Learning Rate is an important tunable hyperparameter that affects model performance. This repository is a tf.keras implementation of the learning rate range test described in Cyclical Learning Rates for Training Neural Networks by Leslie N. Smith and uses the Tensorflow Dataset class to represent potentially large data collections.

Rationalle

The learning rate range test is a test that provides valuable information about the optimal learning rate. During a pre-training run, the learning rate is increased linearly or exponentially between two boundaries. The low initial learning rate allows the network to start converging and as the learning rate is increased it will eventually be too large and the network will diverge. Typically, a good static learning rate can be found half-way on the descending loss curve.

Installation

git clone https://github.com/beringresearch/lrfinder/
cd lrfinder
python3 -m pip install --editable .

Usage

For usage illustration, refer to the Jupyter Notebook example

References

This code is largely based on:

About

Learning Rate Finder using Tensorflow Dataset

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages