Giter VIP home page Giter VIP logo

libsdca's Introduction

libsdca

libsdca is a library for multiclass classification based on stochastic dual coordinate ascent (SDCA).

Features:

  • Matlab interface
  • Top-k Multiclass SVM
  • Multiclass SVM of Crammer and Singer
  • Proximal operators including efficient projections onto the unit simplex and the top-k simplex

The library is currently in active development and more features are planned.

Installation instructions

libsdca can be installed on Linux and OS X in two ways.

  • Using a make script in Matlab:
run matlab/make.m
  • Using CMake (requires CMake version >= 2.8.9):
mkdir build && cd build && cmake .. && make install -j2

Once libsdca is compiled, add the corresponding directory to the Matlab search path:

addpath matlab

Quick start

The Matlab interface is installed to the directory matlab, which should contain two mex files:

  • libsdca_prox provides proximal operators;
  • libsdca_solve provides solvers for multiclass classification.

To train the Multiclass SVM of Crammer and Singer on some random data, run

model = libsdca_solve(randn(2,15),randi(3,15,1))

To check the top-k training accuracies, see

model.evals(end).accuracy

To train the Top-k Multiclass SVM, specify the corresponding objective and the k

model = libsdca_solve(randn(2,15),randi(3,15,1),struct('objective','topk_svm','k',2))

Type libsdca_prox('help') and libsdca_solve('help') for further information.

Citation

Please cite libsdca in your publications if it helps your research:

@inproceedings{lapin2015topk,
  title = {Top-k Multiclass {SVM}},
  author = {Lapin, Maksim and Hein, Matthias and Schiele, Bernt},
  booktitle = {NIPS},
  year = {2015}
}

libsdca's People

Contributors

mlapin avatar

Watchers

 avatar  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.