Git Product home page Git Product logo

rcdvs's Introduction

Description

The Python 3 code that reproduces the experimental results from the paper

A Randomized Coordinate Descent Method with Volume Sampling (A. Rodomanov, D. Kropotov)

Installation

To be able to execute the code, make sure you have the following Python packages installed:

  1. numpy and scipy (for basic linear algebra operations)
  2. numba (for fast execution of the code)
  3. sklearn (for loading the data for the logistic regression experiment)

In addition to that, for the logistic regression experiment, you need to download the following datasets from the LIBSVM website and put them inside the datasets folder:

  1. breast-cancer_scale (download)
  2. phishing (download)
  3. a9a (download)

Usage

Note: The code has been tested on Ubuntu Linux but it should work on any other operating system that has Python 3 installed.

The main script is experiments.py. You can run all the experiments from the terminal using the following commands:

  1. Quadratic function: ./experiments.py -a run_quadratic.
  2. Huber function: ./experiments.py -a run_huber.
  3. Huber function on sparse data: ./experiments.py -a run_huber_sparse.
  4. Logistic regression: ./experiments.py -a run_logistic.

You can also print the information about the real data for the logistic regression experiment using ./experiments.py -a print_data_info.

rcdvs's People

Contributors

arodomanov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.