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 WekaExperimentclass.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanm_PrefixDatasetsWithIndexwhether to prefix the relation names with the index.protected booleanm_UseFilenamewhether 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 voidassign(weka.experiment.Experiment exp)Assigns the values from the other experiment.booleangetPrefixDatasetsWithIndex()Returns whether to prefix the datasets with the index.booleangetUseFilename()Returns whether to use the filename (w/o path) instead of the relationname.booleanisClassFirst()Returns whether the class is the first attribute.voidnextIteration()Carries out the next iteration of the experiment.voidsetPrefixDatasetsWithIndex(boolean value)Sets whether to prefix the datasets with the index.voidsetUseFilename(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:
setUseFilenamein 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:
getUseFilenamein 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:
setPrefixDatasetsWithIndexin interfaceExperimentWithCustomizableRelationNames- Parameters:
value- true if to prefix
-
getPrefixDatasetsWithIndex
public boolean getPrefixDatasetsWithIndex()
Returns whether to prefix the datasets with the index.- Specified by:
getPrefixDatasetsWithIndexin interfaceExperimentWithCustomizableRelationNames- Returns:
- true if to prefix
-
-