NAME

predict_with_svm - Predicts a Support Vector Machine

SYNOPSIS

#include "wrap_svm/wrap_svm.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int predict_with_svm
(
	const char *input_file_name,
	const char *model_file_name,
	const char *prediction_file_name,
	const char *scale_path
);

DESCRIPTION

This routine predicts with a support vector machine built with one of possibly several wrapped methods under the control of user supplied options. The default is to use libsvm if it is available. This KJB library interface to support vector machine code is file based. It is up to the user to be consistent regarding building and predicting as this is not currently validated.

RETURNS

NO_ERROR on success, and ERROR on failure, with an error message being set. This routine will fail if the wrapped prediction function fails.

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Ranjini Swaminathan and Kobus Barnard

DOCUMENTER

Ranjini Swaminathan and Kobus Barnard

SEE ALSO

compute_svm