org.itc.irst.tcc.sre
Class Train
java.lang.Object
org.itc.irst.tcc.sre.Train
public class Train
- extends java.lang.Object
TO DO
- Since:
- 1.0
- Version:
- %I%, %G%
- Author:
- Claudio Giuliano
Field Summary |
(package private) static org.apache.log4j.Logger |
logger
Define a static logger variable so that it references the
Logger instance named Train . |
private java.util.Properties |
parameter
|
Constructor Summary |
Train(java.util.Properties parameter)
|
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
Train
.
parameter
private java.util.Properties parameter
Train
public Train(java.util.Properties parameter)
run
public void run()
throws java.lang.Exception
- Throws:
java.lang.Exception
readDataSet
private ExampleSet readDataSet(java.io.File in)
throws java.io.IOException
- Throws:
java.io.IOException
calculateC
private double calculateC(ExampleSet data)
createFeatureIndex
private FeatureIndex[] createFeatureIndex(int subspaceCount)
saveFeatureIndexes
private void saveFeatureIndexes(FeatureIndex[] index,
ZipModel model)
throws java.io.IOException
- Throws:
java.io.IOException
saveExampleSet
private java.io.File saveExampleSet(ExampleSet outputSet,
ZipModel model)
throws java.io.IOException
- Throws:
java.io.IOException
saveParameters
private void saveParameters(ZipModel model)
throws java.io.IOException
- Throws:
java.io.IOException
svmTrain
private void svmTrain(java.io.File svmTrainingFile,
double c,
double[] weight,
ZipModel model)
throws java.lang.Exception
- Throws:
java.lang.Exception
classFreq
private int[] classFreq(ExampleSet set)
throws java.io.IOException
- Returns a command-line help.
return a command-line help.
- Throws:
java.io.IOException
classWeigth
private double[] classWeigth(int[] c)
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception