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:
adams.core.CleanUpHandler
,adams.core.logging.LoggingSupporter
,adams.core.SizeOfHandler
,Serializable
public class ResultItem extends AbstractResultItem
Container for an attribute selection, evaluator and search method. Used in the result history.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected weka.attributeSelection.AttributeSelection
m_AttributeSelection
the attsel object.protected weka.attributeSelection.ASEvaluation
m_Evaluator
the evaluation algorithm.protected int
m_Folds
the number of folds (in case of cross-validation).protected weka.core.Instances
m_Full
the full dataset.protected adams.data.spreadsheet.MetaData
m_RunInformation
the run information.protected weka.attributeSelection.ASSearch
m_Search
the 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
-
-
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 String
createName()
Creates the name from the members.weka.attributeSelection.AttributeSelection
getAttributeSelection()
Returns the stored AttributeSelection object.weka.attributeSelection.ASEvaluation
getEvaluator()
Returns the stored evaluator object.int
getFolds()
Returns the number of folds.weka.core.Instances
getFull()
Returns the full dataset if present.adams.data.spreadsheet.MetaData
getRunInformation()
Returns the stored run information.weka.attributeSelection.ASSearch
getSearch()
Returns the stored search object.boolean
hasFull()
Checks whether a full dataset is present.boolean
hasRunInformation()
Returns whether run information is present.boolean
isCrossValidation()
Returns whether cross-valiation was used.String
toString()
Returns a short description of the container.void
update(weka.attributeSelection.AttributeSelection attsel, int folds, adams.data.spreadsheet.MetaData runInfo)
Updates the item.protected void
update(weka.attributeSelection.AttributeSelection attsel, int folds, weka.core.Instances full, adams.data.spreadsheet.MetaData runInfo)
Updates the item.void
update(weka.attributeSelection.AttributeSelection attsel, weka.core.Instances full, adams.data.spreadsheet.MetaData runInfo)
Updates the item.-
Methods inherited from class adams.gui.tools.wekainvestigator.output.AbstractResultItem
cleanUp, getHeader, getLogPanel, getName, getTabbedPane, hasHeader, invalidateName, logError, logMessage
-
-
-
-
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 adams.data.spreadsheet.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:
createName
in classAbstractResultItem
- Returns:
- the name
-
update
public void update(weka.attributeSelection.AttributeSelection attsel, weka.core.Instances full, adams.data.spreadsheet.MetaData runInfo)
Updates the item.- Parameters:
attsel
- the attribute selectionfull
- the full datasetrunInfo
- the run information, can be null
-
update
public void update(weka.attributeSelection.AttributeSelection attsel, int folds, adams.data.spreadsheet.MetaData runInfo)
Updates the item.- Parameters:
attsel
- the attribute selectionfolds
- the number of folds, ignored if < 2runInfo
- the run information, can be null
-
update
protected void update(weka.attributeSelection.AttributeSelection attsel, int folds, weka.core.Instances full, adams.data.spreadsheet.MetaData runInfo)
Updates the item.- Parameters:
attsel
- the attribute selectionfolds
- the number of folds, ignored if < 2full
- the full dataset, can be null in case of cross-validationrunInfo
- the run information, can be null
-
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 adams.data.spreadsheet.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:
toString
in classAbstractResultItem
- Returns:
- the description
-
-