|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--marf.Storage.StorageManager | +--marf.Classification.Classification | +--marf.Classification.RandomClassification.RandomClassification
Random Classification Module is for testing purposes.
This represents 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.
$Id: RandomClassification.java,v 1.10 2005/05/30 11:59:48 mokhov Exp $
Field Summary |
Fields inherited from class marf.Classification.Classification |
oFeatureExtraction, oResultSet, oTrainingSet |
Fields inherited from class marf.Storage.StorageManager |
iCurrentDumpMode, oObjectToSerialize, strFilename |
Fields inherited from interface marf.Storage.IStorageManager |
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_HTML, DUMP_SQL, DUMP_XML, INTERFACE_CODE_REVISION, sastrExtensionsMap |
Constructor Summary | |
RandomClassification(marf.FeatureExtraction.FeatureExtraction poFeatureExtraction)
RandomClassification Constructor. |
Method Summary | |
boolean |
classify()
Picks an ID at random. |
void |
dump()
Dumps "training set" of IDs. |
marf.Storage.Result |
getResult()
Retrieves the classification result. |
static java.lang.String |
getRevision()
Retrieves class' revision. |
void |
restore()
Restores "training set" of IDs. |
java.lang.String |
toString()
Returns string representation of the internals of this object. |
boolean |
train()
Simply stores incoming ID's. |
Methods inherited from class marf.Classification.Classification |
getResultSet, getTrainingSetFilename |
Methods inherited from class marf.Storage.StorageManager |
backSynchronizeObject, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, getDefaultExtension, getDefaultExtension, getDumpMode, getFilename, restoreBinary, restoreCSV, restoreGzipBinary, restoreHTML, restoreSQL, restoreXML, setDumpMode, setFilename |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RandomClassification(marf.FeatureExtraction.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
TrainingSet
public final void dump() throws StorageException
dump
in interface IStorageManager
dump
in class Classification
StorageException
public final void restore() throws StorageException
restore
in interface IStorageManager
restore
in class Classification
StorageException
- if there was an error loading the data file.public marf.Storage.Result getResult()
getResult
in class Classification
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String getRevision()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |