org.itc.irst.tcc.sre.util
Class svm_train
java.lang.Object
org.itc.irst.tcc.sre.util.svm_train
public class svm_train
- extends java.lang.Object
TO DO
- Since:
- 1.0
- Version:
- %I%, %G%
- Author:
- unknown
Field Summary |
private int |
cross_validation
|
private java.lang.String |
error_msg
|
private java.lang.String |
input_file_name
|
(package private) static org.apache.log4j.Logger |
logger
Define a static logger variable so that it references the
Logger instance named svm_train . |
private libsvm.svm_model |
model
|
private java.lang.String |
model_file_name
|
private int |
nr_fold
|
private libsvm.svm_parameter |
param
|
private libsvm.svm_problem |
prob
|
Method Summary |
private static double |
atof(java.lang.String s)
|
private static int |
atoi(java.lang.String s)
|
private void |
read_problem()
|
void |
run(java.io.File input_file,
java.io.File model_file,
double c,
int mem,
double[] weight)
|
private void |
set_param(double c,
int mem,
double[] weight)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
static org.apache.log4j.Logger logger
- Define a static logger variable so that it references the
Logger instance named
svm_train
.
param
private libsvm.svm_parameter param
prob
private libsvm.svm_problem prob
model
private libsvm.svm_model model
input_file_name
private java.lang.String input_file_name
model_file_name
private java.lang.String model_file_name
error_msg
private java.lang.String error_msg
cross_validation
private int cross_validation
nr_fold
private int nr_fold
svm_train
public svm_train()
run
public void run(java.io.File input_file,
java.io.File model_file,
double c,
int mem,
double[] weight)
throws java.io.IOException
- Throws:
java.io.IOException
atof
private static double atof(java.lang.String s)
atoi
private static int atoi(java.lang.String s)
read_problem
private void read_problem()
throws java.io.IOException
- Throws:
java.io.IOException
set_param
private void set_param(double c,
int mem,
double[] weight)