This directory includes sources used in the following paper:

Ching-Pei Lee and Chih-Jen Lin, A Study on L2-Loss (Squared Hinge-Loss) Multi-Class SVM, 2012.
You will be able to regenerate experiment results in the paper. However,
results may be slightly different due to the randomness, the CPU speed, 
and the load of your computer.

Please cite the above article if you find this tool useful. Please also read the COPYRIGHT before using this tool.



System Requirement
==================

This experiment is supposed to be run on UNIX machines. The following
commands are required:
- UNIX commands (mv, ln, cp, cat, etc) 
- bash
- g++
- wget
- make
- bunzip2
- python2.6 or newer versions except python 3.x.



Run All Experiments
===================

All things will be automatically done by typing

% ./run.sh

in this directory. For other details, please read the following sections.



Build Programs
==============

Please use the following three lines to compile experiment codes

% make -C liblinear
% make -C bsvm



Prepare Data Sets
=================

Please change directory to data/, and type

% ./generate_data.sh

All data sets will be automatically downloaded and preprocessed.



Run Methods
===========

Please change directory to exp/, and type

% ./run_all.sh

All tables will automatically be generated and be printed on the screen (standard output). Logs are stored in `log' directory. Please check run_all.sh for more details.
