SVMOCAS(1) | General Commands Manual | SVMOCAS(1) |
svmocas - train a binary linear SVM classifier
svmocas [options] example_file model_file
svmocas is a program that trains a binary linear SVM classifier using the Optimized Cutting Plane Algorithm for Support Vector Machines (OCAS) and produces a model file.
example_file is a file with training examples in SVM^light format, and model_file is the file in which to store the learned linear rule f(x)=w'*x+w0. model_file contains d lines, where d is the number of data dimensions. The first n lines are coordinates of w and the last line is w0.
A summary of options is included below.
General options:
Learning options:
Optimization options:
0 ... standard cutting plane (equivalent to BMRM, SVM^perf) 1 ... OCAS (default)
Stopping conditions:
Train the binary SVM classifier from riply_trn.light, with the regularization constant C=10, bias switched on, verbosity switched off, and save model to svmocas.model:
svmocas -c 10 -b 1 -v 0 riply_trn.light svmocas.model
Compute the testing error of the classifier stored in svmocas.model with linclassif(1) using testing examples from riply_tst.light and save the predicted labels to riply_tst.pred:
linclassif -e -o riply_tst.pred riply_tst.light svmocas.model
svmocas was written by Vojtech Franc <xfrancv@cmp.felk.cvut.cz> and Soeren Sonnenburg <Soeren.Sonnenburg@tu-berlin.de>.
This manual page was written by Christian Kastner <ckk@debian.org> for the Debian project (and may be used by others).
June 16, 2010 |