|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object marf.Classification.Classification marf.Classification.RandomClassification.RandomClassification
Class RandomClassification
Random Classification for testing purposes. The bottomline of the classification results. All the other modules should be better than this 99% of the time. If they are not, debug them.
$Header: /cvsroot/marf/marf/src/marf/Classification/RandomClassification/RandomClassification.java,v 1.3 2004/04/20 16:38:20 mokhov Exp $
Field Summary |
Fields inherited from class marf.Classification.Classification |
oFeatureExtraction, oResult, oTrainingSet |
Fields inherited from interface marf.Storage.StorageManager |
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_XML |
Constructor Summary | |
RandomClassification(FeatureExtraction poFeatureExtraction)
RandomClassification Constructor |
Method Summary | |
boolean |
classify()
Picks an ID at random |
void |
dump()
Dumps "training set" of IDs |
void |
restore()
Restores "training set" of IDs |
boolean |
train()
Simply stores incoming ID's |
Methods inherited from class marf.Classification.Classification |
getResult |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RandomClassification(FeatureExtraction poFeatureExtraction)
poFeatureExtraction
- FeatureExtraction module referenceMethod Detail |
public final boolean classify() throws ClassificationException
classify
in class Classification
true
ClassificationException
public final boolean train() throws ClassificationException
train
in class Classification
true
ClassificationException
public final void dump() throws java.io.IOException
dump
in interface StorageManager
dump
in class Classification
java.io.IOException
public final void restore() throws java.io.IOException
restore
in interface StorageManager
restore
in class Classification
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |