|
|||||||||
| Home >> All >> marf >> Classification >> [ RandomClassification overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
marf.Classification.RandomClassification
Class RandomClassification

java.lang.Objectmarf.Storage.StorageManager
marf.Classification.Classification
marf.Classification.RandomClassification.RandomClassification
- All Implemented Interfaces:
- marf.Classification.IClassification, marf.Storage.IStorageManager, java.io.Serializable
- public class RandomClassification
- extends marf.Classification.Classification
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.15 2005/08/14 01:15:55 mokhov Exp $
- Since:
- 0.2.0
- Version:
- $Revision: 1.15 $
| Field Summary | |
private java.util.Vector |
oIDs
Vector of integer IDs. |
private static long |
serialVersionUID
For serialization versioning. |
| Fields inherited from class marf.Classification.Classification |
oFeatureExtraction, oResultSet, oTrainingSet |
| Fields inherited from class marf.Storage.StorageManager |
bDumpOnNotFound, iCurrentDumpMode, oObjectToSerialize, strFilename |
| Fields inherited from interface marf.Classification.IClassification |
MARF_INTERFACE_CODE_REVISION |
| Fields inherited from interface marf.Storage.IStorageManager |
DUMP_BINARY, DUMP_CSV_TEXT, DUMP_GZIP_BINARY, DUMP_HTML, DUMP_SQL, DUMP_XML, MARF_INTERFACE_CODE_REVISION, STORAGE_FILE_EXTENSIONS |
| Constructor Summary | |
RandomClassification(marf.FeatureExtraction.IFeatureExtraction poFeatureExtraction)
RandomClassification Constructor. |
|
| Method Summary | |
boolean |
classify()
Picks an ID at random. |
void |
dump()
Dumps "training set" of IDs. |
static java.lang.String |
getMARFSourceCodeRevision()
Retrieves class' revision. |
marf.Storage.Result |
getResult()
Retrieves the classification result. |
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 |
getFeatureExtraction, getResultSet, getTrainingSetFilename, setFeatureExtraction |
| Methods inherited from class marf.Storage.StorageManager |
backSynchronizeObject, dumpBinary, dumpCSV, dumpGzipBinary, dumpHTML, dumpSQL, dumpXML, enableDumpOnNotFound, 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 |
| Field Detail |
serialVersionUID
private static final long serialVersionUID
- For serialization versioning.
When adding new members or make other structural
changes regenerate this number with the
serialvertool that comes with JDK.- Since:
- 0.3.0.4
- See Also:
- Constant Field Values
oIDs
private java.util.Vector oIDs
- Vector of integer IDs.
| Constructor Detail |
RandomClassification
public RandomClassification(marf.FeatureExtraction.IFeatureExtraction poFeatureExtraction)
- RandomClassification Constructor.
| Method Detail |
classify
public final boolean classify()
throws marf.Classification.ClassificationException
- Picks an ID at random.
train
public final boolean train()
throws marf.Classification.ClassificationException
- Simply stores incoming ID's.
dump
public final void dump()
throws marf.Storage.StorageException
- Dumps "training set" of IDs.
restore
public final void restore()
throws marf.Storage.StorageException
- Restores "training set" of IDs.
getResult
public marf.Storage.Result getResult()
- Retrieves the classification result.
- Since:
- 0.3.0
toString
public java.lang.String toString()
- Returns string representation of the internals of this object.
- Since:
- 0.3.0
getMARFSourceCodeRevision
public static java.lang.String getMARFSourceCodeRevision()
- Retrieves class' revision.
- Since:
- 0.3.0
|
|||||||||
| Home >> All >> marf >> Classification >> [ RandomClassification overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC