public class KeyValuePairs extends AbstractFileBasedEvaluationStatisticsHandler implements OptionalIncrementalEvaluationStatisticsHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CLASSIFIER
the key for the classifier.
|
static String |
KEY_RELATION
the key for the relation.
|
protected boolean |
m_IncrementalDisabled
whether the incremental mode is off.
|
protected List<EvaluationStatistics> |
m_Statistics
the statistics so far.
|
m_Filem_Debug, m_LogListeners| Constructor and Description |
|---|
KeyValuePairs() |
| Modifier and Type | Method and Description |
|---|---|
String |
append(List<EvaluationStatistics> stats)
Adds the given statistics.
|
String |
finish()
Gets called after the experiment finished.
|
String |
getFormatDescription()
Returns the format description.
|
String[] |
getFormatExtensions()
Returns the format extension(s).
|
String[] |
getOptions()
Returns the options.
|
String |
globalInfo()
Description to be displayed in the GUI.
|
String |
incrementalDisabledTipText()
Describes this property.
|
String |
initialize()
Initializes the handler.
|
boolean |
isIncrementalDisabled()
Returns whether incremental mode is turned off.
|
boolean |
isThreadSafe()
Returns whether the handler is threadsafe.
|
Enumeration<weka.core.Option> |
listOptions()
Returns an enumeration of all the available options.
|
List<EvaluationStatistics> |
read()
Reads the statistics.
|
boolean |
requires(MultiLabelClassifier classifier,
weka.core.Instances dataset)
Checks whether the specified combination of classifier and dataset is required for evaluation
or already present from previous evaluation.
|
List<EvaluationStatistics> |
retrieve(MultiLabelClassifier classifier,
weka.core.Instances dataset)
Retrieves the statis for the specified combination of classifier and dataset.
|
void |
setIncrementalDisabled(boolean value)
Sets whether incremental model is turned off.
|
void |
setOptions(String[] options)
Sets the options.
|
boolean |
supportsIncrementalUpdate()
Returns whether the handler supports incremental write.
|
String |
write(List<EvaluationStatistics> stats)
Stores the given statistics.
|
fileTipText, getDefaultFile, getFile, setFileaddLogListener, debug, getLogListeners, handleException, log, removeLogListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLogListener, log, removeLogListenerpublic static final String KEY_CLASSIFIER
public static final String KEY_RELATION
protected List<EvaluationStatistics> m_Statistics
protected boolean m_IncrementalDisabled
public String globalInfo()
globalInfo in class AbstractEvaluationStatisticsHandlerpublic String getFormatDescription()
getFormatDescription in interface FileFormatSupportergetFormatDescription in interface FileBasedEvaluationStatisticsHandlerpublic String[] getFormatExtensions()
getFormatExtensions in interface FileFormatSupportergetFormatExtensions in interface FileBasedEvaluationStatisticsHandlerpublic void setIncrementalDisabled(boolean value)
setIncrementalDisabled in interface OptionalIncrementalEvaluationStatisticsHandlervalue - true to turn off incremental modepublic boolean isIncrementalDisabled()
isIncrementalDisabled in interface OptionalIncrementalEvaluationStatisticsHandlerpublic String incrementalDisabledTipText()
incrementalDisabledTipText in interface OptionalIncrementalEvaluationStatisticsHandlerpublic boolean isThreadSafe()
isThreadSafe in interface EvaluationStatisticsHandlerisThreadSafe in class AbstractEvaluationStatisticsHandlerpublic boolean supportsIncrementalUpdate()
supportsIncrementalUpdate in interface IncrementalEvaluationStatisticsHandlerpublic Enumeration<weka.core.Option> listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class AbstractFileBasedEvaluationStatisticsHandlerpublic void setOptions(String[] options) throws Exception
setOptions in interface weka.core.OptionHandlersetOptions in class AbstractFileBasedEvaluationStatisticsHandleroptions - the optionsException - neverpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class AbstractFileBasedEvaluationStatisticsHandlerpublic String initialize()
initialize in interface EvaluationStatisticsHandlerinitialize in class AbstractFileBasedEvaluationStatisticsHandlerpublic List<EvaluationStatistics> read()
read in interface EvaluationStatisticsHandlerpublic boolean requires(MultiLabelClassifier classifier, weka.core.Instances dataset)
requires in interface IncrementalEvaluationStatisticsHandlerclassifier - the classifier to checkdataset - the dataset to checkpublic List<EvaluationStatistics> retrieve(MultiLabelClassifier classifier, weka.core.Instances dataset)
retrieve in interface IncrementalEvaluationStatisticsHandlerclassifier - the classifier to checkdataset - the dataset to checkpublic String append(List<EvaluationStatistics> stats)
append in interface IncrementalEvaluationStatisticsHandlerstats - the statistics to storepublic String write(List<EvaluationStatistics> stats)
write in interface EvaluationStatisticsHandlerstats - the statistics to storepublic String finish()
finish in interface EvaluationStatisticsHandlerfinish in class AbstractEvaluationStatisticsHandlerCopyright © 2017. All Rights Reserved.