DOKK / manpages / debian 10 / libsvm-tools / svm-predict.1.en
svm-predict(1) User Manuals svm-predict(1)

svm-predict - make predictions based on a trained SVM model file and test data

svm-predict [ -b probability_estimates ] [ -q ] test_data model_file [ output_file ]

svm-predict uses a Support Vector Machine specified by a given input model_file to make predictions for each of the samples in test_data
The format of this file is identical to the training_data file used in svm_train(1) and is just a sparse vector as follows:

<label> <index1>:<value1> <index2>:<value2> . . .

.

.

.

If output_file is given, it will be used to specify the filename to store the predicted results, one per line, in the same order as the test_data file.

probability_estimates is a binary value indicating whether to calculate probability estimates when training the SVC or SVR model. Values are 0 or 1 and defaults to 0 for speed.
quiet mode; suppress messages to stdout.

training_set_file must be prepared in the following simple sparse training vector format:

<label> <index1>:<value1> <index2>:<value2> . . .

.

.

.

No environment variables.

None documented; see Vapnik et al.

Please report bugs to the Debian BTS.

Chih-Chung Chang, Chih-Jen Lin <cjlin@csie.ntu.edu.tw>, Chen-Tse Tsai <ctse.tsai@gmail.com> (packaging)

svm-train(1), svm-scale(1)

MAY 2006 Linux