Class AbstractClustererEvaluation
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.tools.wekainvestigator.evaluation.AbstractEvaluation<ClusterTab,ResultItem>
-
- adams.gui.tools.wekainvestigator.tab.clustertab.evaluation.AbstractClustererEvaluation
-
- All Implemented Interfaces:
adams.core.GlobalInfoSupporter,adams.core.logging.LoggingSupporter,adams.core.SizeOfHandler,adams.core.StatusMessageHandler,Serializable
- Direct Known Subclasses:
BuildModel,ClassesToClusters,CrossValidation,ReevaluateModel,TrainTestSet,TrainTestSplit
public abstract class AbstractClustererEvaluation extends AbstractEvaluation<ClusterTab,ResultItem>
Ancestor for clusterer 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
-
-
Constructor Summary
Constructors Constructor Description AbstractClustererEvaluation()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringcanEvaluate(weka.clusterers.Clusterer clusterer)Tests whether the clusterer can be evaluated.protected abstract voiddoEvaluate(weka.clusterers.Clusterer clusterer, ResultItem item)Evaluates the clusterer and updates the result item.voidevaluate(weka.clusterers.Clusterer clusterer, ResultItem item)Evaluates the clusterer and updates the result item.static Class[]getEvaluations()Returns the available actions.abstract ResultIteminit(weka.clusterers.Clusterer clusterer)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
-
-
-
-
Method Detail
-
canEvaluate
public abstract String canEvaluate(weka.clusterers.Clusterer clusterer)
Tests whether the clusterer can be evaluated.- Parameters:
clusterer- the current clusterer- Returns:
- null if successful, otherwise error message
-
init
public abstract ResultItem init(weka.clusterers.Clusterer clusterer) throws Exception
Initializes the result item.- Parameters:
clusterer- the current clusterer- Returns:
- the initialized history item
- Throws:
Exception- if initialization fails
-
doEvaluate
protected abstract void doEvaluate(weka.clusterers.Clusterer clusterer, ResultItem item) throws ExceptionEvaluates the clusterer and updates the result item.- Parameters:
clusterer- the current clustereritem- the item to update- Throws:
Exception- if evaluation fails
-
evaluate
public void evaluate(weka.clusterers.Clusterer clusterer, ResultItem item) throws ExceptionEvaluates the clusterer and updates the result item.- Parameters:
clusterer- the current clustereritem- the item to update- Throws:
Exception- if evaluation fails
-
getEvaluations
public static Class[] getEvaluations()
Returns the available actions.- Returns:
- the action classnames
-
-