Package weka.experiment
Class ExtExperiment
- java.lang.Object
-
- weka.experiment.Experiment
-
- weka.experiment.ExtExperiment
-
- All Implemented Interfaces:
ExperimentWithCustomizableRelationNames
,Serializable
,weka.core.OptionHandler
,weka.core.RevisionHandler
public class ExtExperiment extends weka.experiment.Experiment implements ExperimentWithCustomizableRelationNames
Extended version of the WekaExperiment
class.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
m_PrefixDatasetsWithIndex
whether to prefix the relation names with the index.protected boolean
m_UseFilename
whether to use the filename (w/o path) instead of relationname.-
Fields inherited from class weka.experiment.Experiment
FILE_EXTENSION, m_AdditionalMeasures, m_AdvanceDataSetFirst, m_ClassFirst, m_CurrentInstances, m_CurrentProperty, m_DatasetNumber, m_Datasets, m_Finished, m_Notes, m_PropertyArray, m_PropertyNumber, m_PropertyPath, m_ResultListener, m_ResultProducer, m_RunLower, m_RunNumber, m_RunUpper, m_UsePropertyIterator
-
-
Constructor Summary
Constructors Constructor Description ExtExperiment()
Default constructor.ExtExperiment(weka.experiment.Experiment exp)
Assigns the values from the given experiment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assign(weka.experiment.Experiment exp)
Assigns the values from the other experiment.boolean
getPrefixDatasetsWithIndex()
Returns whether to prefix the datasets with the index.boolean
getUseFilename()
Returns whether to use the filename (w/o path) instead of the relationname.boolean
isClassFirst()
Returns whether the class is the first attribute.void
nextIteration()
Carries out the next iteration of the experiment.void
setPrefixDatasetsWithIndex(boolean value)
Sets whether to prefix the datasets with the index.void
setUseFilename(boolean value)
Sets whether to use the filename (w/o path) instead of the relationname.-
Methods inherited from class weka.experiment.Experiment
advanceCounters, classFirst, getAdvanceDataSetFirst, getCurrentDatasetNumber, getCurrentPropertyNumber, getCurrentRunNumber, getDatasets, getNotes, getOptions, getPropertyArray, getPropertyArrayLength, getPropertyArrayValue, getPropertyPath, getResultListener, getResultProducer, getRevision, getRunLower, getRunUpper, getUsePropertyIterator, hasMoreIterations, initialize, listOptions, main, postProcess, read, runExperiment, runExperiment, setAdvanceDataSetFirst, setDatasets, setNotes, setOptions, setProperty, setPropertyArray, setPropertyPath, setResultListener, setResultProducer, setRunLower, setRunUpper, setUsePropertyIterator, toString, write
-
-
-
-
Method Detail
-
assign
public void assign(weka.experiment.Experiment exp)
Assigns the values from the other experiment.- Parameters:
exp
- the other experiment
-
isClassFirst
public boolean isClassFirst()
Returns whether the class is the first attribute.- Returns:
- true if first
-
setUseFilename
public void setUseFilename(boolean value)
Sets whether to use the filename (w/o path) instead of the relationname.- Specified by:
setUseFilename
in interfaceExperimentWithCustomizableRelationNames
- Parameters:
value
- true if to use filename
-
getUseFilename
public boolean getUseFilename()
Returns whether to use the filename (w/o path) instead of the relationname.- Specified by:
getUseFilename
in interfaceExperimentWithCustomizableRelationNames
- Returns:
- true if to use the filename
-
setPrefixDatasetsWithIndex
public void setPrefixDatasetsWithIndex(boolean value)
Sets whether to prefix the datasets with the index.- Specified by:
setPrefixDatasetsWithIndex
in interfaceExperimentWithCustomizableRelationNames
- Parameters:
value
- true if to prefix
-
getPrefixDatasetsWithIndex
public boolean getPrefixDatasetsWithIndex()
Returns whether to prefix the datasets with the index.- Specified by:
getPrefixDatasetsWithIndex
in interfaceExperimentWithCustomizableRelationNames
- Returns:
- true if to prefix
-
-