edu.ksu.cis.kdd.classifier
Class ClassifierEngine

java.lang.Object
  extended byjava.lang.Thread
      extended byedu.ksu.cis.kdd.classifier.ClassifierEngine
All Implemented Interfaces:
java.lang.Runnable

public class ClassifierEngine
extends java.lang.Thread


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

MLC

public static final int MLC
See Also:
Constant Field Values

ARFF

public static final int ARFF
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

classifier

protected Classifier classifier

validator

protected Validator validator

trainData

protected Table trainData

testData

protected Table testData

statistics

protected Statistics statistics

tp

protected TextParser tp

ap

protected ArffParser ap
Constructor Detail

ClassifierEngine

public ClassifierEngine()
Method Detail

load

public void load(int type,
                 java.lang.String trainfile,
                 java.lang.String testfile)

load

public void load(int type,
                 java.lang.String trainfile)

loadImpl

protected Table loadImpl(int type,
                         java.lang.String filename)
                  throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

run

public void run()

getTestData

public Table getTestData()
Returns the testData.

Returns:
Table

getTrainData

public Table getTrainData()
Returns the trainData.

Returns:
Table

setTestData

public void setTestData(Table testData)
Sets the testData.

Parameters:
testData - The testData to set

setTrainData

public void setTrainData(Table trainData)
Sets the trainData.

Parameters:
trainData - The trainData to set

getStatistics

public Statistics getStatistics()
Returns the statistics.

Returns:
Statistics

getClassifier

public Classifier getClassifier()
Returns the classifier.

Returns:
Classifier

getValidator

public Validator getValidator()
Returns the validator.

Returns:
Validator

setClassifier

public void setClassifier(Classifier classifier)
Sets the classifier.

Parameters:
classifier - The classifier to set

setValidator

public void setValidator(Validator validator)
Sets the validator.

Parameters:
validator - The validator to set