Class AbstractAttributeSelectionEvaluation
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.tools.wekainvestigator.evaluation.AbstractEvaluation<AttributeSelectionTab,ResultItem>
-
- adams.gui.tools.wekainvestigator.tab.attseltab.evaluation.AbstractAttributeSelectionEvaluation
-
- All Implemented Interfaces:
GlobalInfoSupporter,LoggingSupporter,SizeOfHandler,StatusMessageHandler,Serializable
- Direct Known Subclasses:
CrossValidation,Train
public abstract class AbstractAttributeSelectionEvaluation extends AbstractEvaluation<AttributeSelectionTab,ResultItem>
Ancestor for attribute selection evaluation setups.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.tools.wekainvestigator.evaluation.AbstractEvaluation
m_Owner, m_PanelOptions
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractAttributeSelectionEvaluation()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringcanEvaluate(weka.attributeSelection.ASEvaluation evaluator, weka.attributeSelection.ASSearch search)Tests whether attribute selection can be performed.protected abstract voiddoEvaluate(weka.attributeSelection.ASEvaluation evaluator, weka.attributeSelection.ASSearch search, ResultItem item)Performs attribute selections and updates the result item.voidevaluate(weka.attributeSelection.ASEvaluation evaluator, weka.attributeSelection.ASSearch search, ResultItem item)Performs attribute selections and updates the result item.static Class[]getEvaluations()Returns the available actions.abstract ResultIteminit(weka.attributeSelection.ASEvaluation evaluator, weka.attributeSelection.ASSearch search)Initializes the result item.-
Methods inherited from class adams.gui.tools.wekainvestigator.evaluation.AbstractEvaluation
activate, addObjectSize, addToHistory, deserialize, getName, getOwner, getPanel, getProperties, getTestingUpdateInterval, initGUI, initialize, isValidDataIndex, listOrArray, serialize, setOwner, showStatus, toString, update
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.GlobalInfoSupporter
globalInfo
-
-
-
-
Method Detail
-
canEvaluate
public abstract String canEvaluate(weka.attributeSelection.ASEvaluation evaluator, weka.attributeSelection.ASSearch search)
Tests whether attribute selection can be performed.- Returns:
- null if successful, otherwise error message
-
init
public abstract ResultItem init(weka.attributeSelection.ASEvaluation evaluator, weka.attributeSelection.ASSearch search) throws Exception
Initializes the result item.- Parameters:
evaluator- the current evaluatorsearch- the current search- Returns:
- the initialized history item
- Throws:
Exception- if initialization fails
-
doEvaluate
protected abstract void doEvaluate(weka.attributeSelection.ASEvaluation evaluator, weka.attributeSelection.ASSearch search, ResultItem item) throws ExceptionPerforms attribute selections and updates the result item.- Parameters:
evaluator- the current evaluatorsearch- the current searchitem- the result item to update- Throws:
Exception- if evaluation fails
-
evaluate
public void evaluate(weka.attributeSelection.ASEvaluation evaluator, weka.attributeSelection.ASSearch search, ResultItem item) throws ExceptionPerforms attribute selections and updates the result item.- Parameters:
evaluator- the current evaluatorsearch- the current searchitem- the result item to update- Throws:
Exception- if evaluation fails
-
getEvaluations
public static Class[] getEvaluations()
Returns the available actions.- Returns:
- the action classnames
-
-