|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.Classification.Classification
Class Classification
Abstract Classification Module
$Header: /cvsroot/marf/marf/src/marf/Classification/Classification.java,v 1.21 2004/04/20 16:38:15 mokhov Exp $
Field Summary | |
protected FeatureExtraction |
oFeatureExtraction
Reference to the FeatureExtraction object |
protected Result |
oResult
Classification Result |
protected TrainingSet |
oTrainingSet
TrainingSet Container |
Fields inherited from interface marf.Storage.StorageManager |
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_XML |
Constructor Summary | |
protected |
Classification(FeatureExtraction poFeatureExtraction)
Generic Classification Constructor |
Method Summary | |
abstract boolean |
classify()
Generic classification routine. |
void |
dump()
Generic implementation of dump() for TrainingSet |
Result |
getResult()
Retrieves the classification result |
void |
restore()
Generic implementation of restore() for TrainingSet |
boolean |
train()
Generic training routine for building/updating mean vectors in the training set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected FeatureExtraction oFeatureExtraction
protected TrainingSet oTrainingSet
protected Result oResult
Constructor Detail |
protected Classification(FeatureExtraction poFeatureExtraction)
poFeatureExtraction
- FeatureExtraction module referenceMethod Detail |
public abstract boolean classify() throws ClassificationException
true
if classification was successful; false
otherwise
ClassificationException
public boolean train() throws ClassificationException
super.train();
true
if training was successful (i.e. mean vector was updated); false
otherwise
ClassificationException
public void dump() throws java.io.IOException
dump
in interface StorageManager
IOException
- if there's a problem saving training set to diskpublic void restore() throws java.io.IOException
restore
in interface StorageManager
IOException
public final Result getResult()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |