Skip to content

Code for the paper "ActCooLR – High-Level Learning Rate Schedules using Activation Pattern Temperature"

Notifications You must be signed in to change notification settings

JGU-VC/actcoolr

Repository files navigation

ActCooLR -- Understanding and Controlling Learning Rates by Tracking \ Activation Pattern Changes

This repository is the code for the paper: ActCooLR -- Understanding and Controlling Learning Rates by Tracking \ Activation Pattern Changes

Setup

  1. Make sure you have Pytorch (1.11.0) installed. (This code has been tested on Python 3.9.9).
  2. Install the requirements:
    pip install --user -r requirements.txt
    
  3. Make sure that visdom is running on your machine:
    mkdir logs
    visdom -env_path ./logs
    
    Go to http://localhost:8097

Experiments

In the following we give all steps required to reproduce the experiments shown in the figures of the paper.

Table Plots

  1. Run ./exp.sh --gpu 0 -d run table ""
  • You can observe the progress using ./exp.sh --stats table ""
  • Multiple GPUs can be used in parallel, just start multiple processes using ./exp.sh --gpu 1 ...
  1. Observe Training & obtain the data directly from visdom (go to http://localhost:8097)

LR Sensitivity Plots

  1. Run ./exp.sh --gpu 0 -d run paper-plot-lrsensitivity EXPNAME. The experiment names are listed in ./experiments/paper-plot-lrsensitivity.sh.
  • You can observe the progress using ./exp.sh --stats paper-plot-lrsensitivity EXPNAME
  • Multiple GPUs can be used in parallel, just start multiple processes using ./exp.sh --gpu 1 ...
  1. Observe Training & obtain the data directly from visdom (go to http://localhost:8097)

About

Code for the paper "ActCooLR – High-Level Learning Rate Schedules using Activation Pattern Temperature"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published