Class ResultItem
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.tools.wekainvestigator.output.AbstractResultItem
-
- adams.gui.tools.wekainvestigator.tab.attseltab.ResultItem
-
- All Implemented Interfaces:
CleanUpHandler,LoggingSupporter,SizeOfHandler,Serializable
public class ResultItem extends AbstractResultItem
Container for an attribute selection, evaluator and search method. Used in the result history.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected weka.attributeSelection.AttributeSelectionm_AttributeSelectionthe attsel object.protected weka.attributeSelection.ASEvaluationm_Evaluatorthe evaluation algorithm.protected intm_Foldsthe number of folds (in case of cross-validation).protected weka.core.Instancesm_Fullthe full dataset.protected MetaDatam_RunInformationthe run information.protected weka.attributeSelection.ASSearchm_Searchthe search algorithm.-
Fields inherited from class adams.gui.tools.wekainvestigator.output.AbstractResultItem
m_Header, m_Log, m_LogPanel, m_Name, m_TabbedPane, m_Timestamp, MAX_RELATIONNAME_LENGTH
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description ResultItem(weka.attributeSelection.ASEvaluation evaluator, weka.attributeSelection.ASSearch search, weka.core.Instances header)Initializes the item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcreateName()Creates the name from the members.weka.attributeSelection.AttributeSelectiongetAttributeSelection()Returns the stored AttributeSelection object.weka.attributeSelection.ASEvaluationgetEvaluator()Returns the stored evaluator object.intgetFolds()Returns the number of folds.weka.core.InstancesgetFull()Returns the full dataset if present.MetaDatagetRunInformation()Returns the stored run information.weka.attributeSelection.ASSearchgetSearch()Returns the stored search object.booleanhasFull()Checks whether a full dataset is present.booleanhasRunInformation()Returns whether run information is present.booleanisCrossValidation()Returns whether cross-valiation was used.StringtoString()Returns a short description of the container.ResultItemupdate(int folds)Updates the item.ResultItemupdate(MetaData runInfo)Updates the item.ResultItemupdate(weka.attributeSelection.AttributeSelection attsel)Updates the item.ResultItemupdate(weka.core.Instances full)Updates the item.-
Methods inherited from class adams.gui.tools.wekainvestigator.output.AbstractResultItem
cleanUp, getHeader, getLogPanel, getName, getTabbedPane, hasHeader, invalidateName, logError, logMessage
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
m_AttributeSelection
protected weka.attributeSelection.AttributeSelection m_AttributeSelection
the attsel object.
-
m_Search
protected weka.attributeSelection.ASSearch m_Search
the search algorithm.
-
m_Evaluator
protected weka.attributeSelection.ASEvaluation m_Evaluator
the evaluation algorithm.
-
m_Folds
protected int m_Folds
the number of folds (in case of cross-validation).
-
m_Full
protected weka.core.Instances m_Full
the full dataset.
-
m_RunInformation
protected MetaData m_RunInformation
the run information.
-
-
Constructor Detail
-
ResultItem
public ResultItem(weka.attributeSelection.ASEvaluation evaluator, weka.attributeSelection.ASSearch search, weka.core.Instances header)Initializes the item.- Parameters:
evaluator- the evaluation algorithmsearch- the search algorithmheader- the header of the training set
-
-
Method Detail
-
createName
protected String createName()
Creates the name from the members.- Specified by:
createNamein classAbstractResultItem- Returns:
- the name
-
update
public ResultItem update(weka.attributeSelection.AttributeSelection attsel)
Updates the item.- Parameters:
attsel- the attribute selection- Returns:
- itself
-
update
public ResultItem update(weka.core.Instances full)
Updates the item.- Parameters:
full- the full dataset- Returns:
- itself
-
update
public ResultItem update(MetaData runInfo)
Updates the item.- Parameters:
runInfo- the run information, can be null- Returns:
- itself
-
update
public ResultItem update(int folds)
Updates the item.- Parameters:
folds- the number of folds, ignored if < 2- Returns:
- itself
-
getAttributeSelection
public weka.attributeSelection.AttributeSelection getAttributeSelection()
Returns the stored AttributeSelection object.- Returns:
- the attsel, null if not present
-
getSearch
public weka.attributeSelection.ASSearch getSearch()
Returns the stored search object.- Returns:
- the search, null if not present
-
getEvaluator
public weka.attributeSelection.ASEvaluation getEvaluator()
Returns the stored evaluator object.- Returns:
- the evaluator, null if not present
-
isCrossValidation
public boolean isCrossValidation()
Returns whether cross-valiation was used.- Returns:
- true if cross-validation
-
getFolds
public int getFolds()
Returns the number of folds.- Returns:
- the number of folds
-
hasFull
public boolean hasFull()
Checks whether a full dataset is present.- Returns:
- true if available
-
getFull
public weka.core.Instances getFull()
Returns the full dataset if present.- Returns:
- the dataset, null if not available
-
hasRunInformation
public boolean hasRunInformation()
Returns whether run information is present.- Returns:
- true if available
-
getRunInformation
public MetaData getRunInformation()
Returns the stored run information.- Returns:
- the information, null if not present
-
toString
public String toString()
Returns a short description of the container.- Specified by:
toStringin classAbstractResultItem- Returns:
- the description
-
-