Skip to content

Implementation of the Proximal Stochastic Variance Reduced Gradients Algorithms

Notifications You must be signed in to change notification settings

Pratik08/prox-svrg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prox-svrg

Implementation of the Proximal Stochastic Variance Reduced Gradients Algorithm.

The code is written in PyTorch. The code is cuda enabled and can be executed on a GPU out of the box.

Dataset Details


  • Download the dataset required for the analysis from the following locations:

  • The datasets need to be uncompressed manually by the user. We couldn't generalize it due to different decompressing utilities exist on different systems.

Setup instructions


  • From the root of the directory, execute the following:
    sh ./utils/download_dataset.sh
  • Then, execute the following command to install all the dependencies:
    sh ./install.sh

Test scripts


Scripts are placed in the ./test directory

  • test_dataset_loader.py: Processes the dataset.
  • test_loss.py: Tests if the loss functions return appropriate values.
  • test_optimizers.py: Tests if the optimizers work.

Result scripts


Scripts are placed in the ./results directory

  • train_covertype.py: Runs the experiments on Covertype dataset.
  • train_rcv.py: Runs the experiments on Covertype dataset.
  • train_sido.py: Runs the experiments on Covertype dataset.

The scripts generate pickle files with the metrics, such as Number of Non-Zeros, objective gap and the number of effective passes.

Plot scripts


The combined plots can be obtained by executing the file plot_from_pkl.py

About

Implementation of the Proximal Stochastic Variance Reduced Gradients Algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published