public interface Classifier
Modifier and Type | Method and Description |
---|---|
ClassificationResult |
classify(DataPoint data)
Classify the given DataPoint.
|
FeatureDictionary |
getFeatureDictionary()
Returns the FeatureDictionary for this Classifier.
|
void |
readParameters(Reader parameterIn,
Reader featuresIn)
Override the current parameters with the ones given in the Reader.
|
void |
train(ArrayList<LabeledDataPoint> trainingData)
Adjust the classifier parameters according to the given training data.
|
void |
writeParamters(Writer parameterOut,
Writer featuresOut)
Write the current parameters and features of the classifier to the given
Writer.
|
void train(ArrayList<LabeledDataPoint> trainingData)
trainingData
- a list of LabeledDataPoints. The user has to assure
that the training data points stem from a consistent data set.ClassificationResult classify(DataPoint data)
data
- a DataPoint.void writeParamters(Writer parameterOut, Writer featuresOut) throws IOException
parameterOut
- a Writer for the parameters.featuresOut
- a Writer for the features.IOException
void readParameters(Reader parameterIn, Reader featuresIn) throws IOException
parameterIn
- a Reader containing parameter data.featuresIn
- a Reader containing the fitting feature data.IOException
FeatureDictionary getFeatureDictionary()
Copyright © 2014. All rights reserved.