|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
edu.ksu.cis.kdd.classifier.ClassifierEngine
Field Summary | |
protected ArffParser |
ap
|
static int |
ARFF
|
protected Classifier |
classifier
|
static int |
MLC
|
protected Statistics |
statistics
|
protected Table |
testData
|
static int |
TEXT
|
protected TextParser |
tp
|
protected Table |
trainData
|
protected Validator |
validator
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ClassifierEngine()
|
Method Summary | |
Classifier |
getClassifier()
Returns the classifier. |
Statistics |
getStatistics()
Returns the statistics. |
Table |
getTestData()
Returns the testData. |
Table |
getTrainData()
Returns the trainData. |
Validator |
getValidator()
Returns the validator. |
void |
load(int type,
java.lang.String trainfile)
|
void |
load(int type,
java.lang.String trainfile,
java.lang.String testfile)
|
protected Table |
loadImpl(int type,
java.lang.String filename)
|
void |
run()
|
void |
setClassifier(Classifier classifier)
Sets the classifier. |
void |
setTestData(Table testData)
Sets the testData. |
void |
setTrainData(Table trainData)
Sets the trainData. |
void |
setValidator(Validator validator)
Sets the validator. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MLC
public static final int ARFF
public static final int TEXT
protected Classifier classifier
protected Validator validator
protected Table trainData
protected Table testData
protected Statistics statistics
protected TextParser tp
protected ArffParser ap
Constructor Detail |
public ClassifierEngine()
Method Detail |
public void load(int type, java.lang.String trainfile, java.lang.String testfile)
public void load(int type, java.lang.String trainfile)
protected Table loadImpl(int type, java.lang.String filename) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void run()
public Table getTestData()
public Table getTrainData()
public void setTestData(Table testData)
testData
- The testData to setpublic void setTrainData(Table trainData)
trainData
- The trainData to setpublic Statistics getStatistics()
public Classifier getClassifier()
public Validator getValidator()
public void setClassifier(Classifier classifier)
classifier
- The classifier to setpublic void setValidator(Validator validator)
validator
- The validator to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |