|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.Main
public class Main
Default executable class to classification algorithms.
Field Summary | |
---|---|
static java.lang.String |
BULK_SIZE
The property key under which the bulk value is stored. |
static java.lang.String |
CLASSIFIER
The property key under which the classifier class name is stored. |
static java.lang.String |
CROSS_VALIDATION_FOLDS
The property key under which the cross validation folds value is stored. |
static java.lang.String |
EXPORTER
The property key under which the exporter implementation class name is stored. |
static java.lang.String |
EXPORTER_FILE
The property key under which the exporter output file name is stored. |
static java.lang.String |
FOLD_PREFIX
Default test file name prefix. |
static java.lang.String |
MEASURE
The property key under which the measure implementation class name is stored. |
static java.lang.String |
TR_PREFIX
Default training file name prefix. |
static java.lang.String |
TS_PREFIX
Default test file name prefix. |
Constructor Summary | |
---|---|
Main()
|
Method Summary | |
---|---|
protected void |
append(java.lang.StringBuffer output,
java.util.Properties options)
Appends the specified options to the output buffer. |
Classifier |
getClassifier()
Returns the classifier instance to be used. |
Measure |
getMeasure()
Returns the measure instance to be used. |
java.util.Properties |
getOptions(java.lang.String file)
Returns the classifier options. |
static void |
main(java.lang.String[] args)
Program entry point. |
protected void |
print(Dataset dataset)
Prints the dataset information. |
protected void |
print(java.lang.String s)
Prints the specified string to the default output stream. |
void |
run(java.lang.String[] args)
Executes a classification algorithm. |
protected void |
runBatch(java.lang.String pattern,
java.lang.String directory)
|
protected void |
runCrossValidation(Dataset dataset)
|
protected void |
runTest(Dataset trainingSet,
Dataset testSet)
|
protected void |
runTrain(Dataset dataset)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CROSS_VALIDATION_FOLDS
public static final java.lang.String BULK_SIZE
public static final java.lang.String CLASSIFIER
public static final java.lang.String MEASURE
public static final java.lang.String EXPORTER
public static final java.lang.String EXPORTER_FILE
public static final java.lang.String TR_PREFIX
public static final java.lang.String TS_PREFIX
public static final java.lang.String FOLD_PREFIX
Constructor Detail |
---|
public Main()
Method Detail |
---|
public Classifier getClassifier()
public Measure getMeasure()
public java.util.Properties getOptions(java.lang.String file)
public static void main(java.lang.String[] args) throws java.io.IOException
args
- an array of command line arguments.
java.io.IOException
public void run(java.lang.String[] args) throws java.io.IOException
args
- an array of command line arguments.
java.io.IOException
protected void runTest(Dataset trainingSet, Dataset testSet)
protected void runTrain(Dataset dataset)
protected void runCrossValidation(Dataset dataset)
protected void runBatch(java.lang.String pattern, java.lang.String directory) throws java.io.IOException
java.io.IOException
protected void print(java.lang.String s)
s
- the string to be printed.protected void print(Dataset dataset)
dataset
- thje current dataset.protected void append(java.lang.StringBuffer output, java.util.Properties options)
output
- the output buffer.options
- the options mapping.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |