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_File
m_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, setFile
addLogListener, debug, getLogListeners, handleException, log, removeLogListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLogListener, log, removeLogListener
public 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 AbstractEvaluationStatisticsHandler
public String getFormatDescription()
getFormatDescription
in interface FileFormatSupporter
getFormatDescription
in interface FileBasedEvaluationStatisticsHandler
public String[] getFormatExtensions()
getFormatExtensions
in interface FileFormatSupporter
getFormatExtensions
in interface FileBasedEvaluationStatisticsHandler
public void setIncrementalDisabled(boolean value)
setIncrementalDisabled
in interface OptionalIncrementalEvaluationStatisticsHandler
value
- true to turn off incremental modepublic boolean isIncrementalDisabled()
isIncrementalDisabled
in interface OptionalIncrementalEvaluationStatisticsHandler
public String incrementalDisabledTipText()
incrementalDisabledTipText
in interface OptionalIncrementalEvaluationStatisticsHandler
public boolean isThreadSafe()
isThreadSafe
in interface EvaluationStatisticsHandler
isThreadSafe
in class AbstractEvaluationStatisticsHandler
public boolean supportsIncrementalUpdate()
supportsIncrementalUpdate
in interface IncrementalEvaluationStatisticsHandler
public Enumeration<weka.core.Option> listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class AbstractFileBasedEvaluationStatisticsHandler
public void setOptions(String[] options) throws Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class AbstractFileBasedEvaluationStatisticsHandler
options
- the optionsException
- neverpublic String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class AbstractFileBasedEvaluationStatisticsHandler
public String initialize()
initialize
in interface EvaluationStatisticsHandler
initialize
in class AbstractFileBasedEvaluationStatisticsHandler
public List<EvaluationStatistics> read()
read
in interface EvaluationStatisticsHandler
public boolean requires(MultiLabelClassifier classifier, weka.core.Instances dataset)
requires
in interface IncrementalEvaluationStatisticsHandler
classifier
- the classifier to checkdataset
- the dataset to checkpublic List<EvaluationStatistics> retrieve(MultiLabelClassifier classifier, weka.core.Instances dataset)
retrieve
in interface IncrementalEvaluationStatisticsHandler
classifier
- the classifier to checkdataset
- the dataset to checkpublic String append(List<EvaluationStatistics> stats)
append
in interface IncrementalEvaluationStatisticsHandler
stats
- the statistics to storepublic String write(List<EvaluationStatistics> stats)
write
in interface EvaluationStatisticsHandler
stats
- the statistics to storepublic String finish()
finish
in interface EvaluationStatisticsHandler
finish
in class AbstractEvaluationStatisticsHandler
Copyright © 2017. All Rights Reserved.