Package weka.gui.explorer
Class ClassifierHandler
- java.lang.Object
-
- weka.gui.explorer.AbstractExplorerPanelHandler
-
- weka.gui.explorer.ClassifierHandler
-
- All Implemented Interfaces:
Serializable
public class ClassifierHandler extends AbstractExplorerPanelHandler
Manages theClassifierPanel
.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_CLASS_INDEX
static String
KEY_COLLECT_PREDICTIONS_FOR_EVALUATION
static String
KEY_COST_SENSITIVE_EVALUATION
static String
KEY_CV_FOLDS
static String
KEY_ERROR_PLOT_POINT_SIZE
static String
KEY_EVALUATION_METRICS
static String
KEY_OUTPUT_CONFUSION_MATRIX
static String
KEY_OUTPUT_ENTROPY
static String
KEY_OUTPUT_MODEL
static String
KEY_OUTPUT_PER_CLASS
static String
KEY_OUTPUT_PREDICTIONS
static String
KEY_OUTPUT_SOURCE_CODE
static String
KEY_PERCENTAGE_SPLIT
static String
KEY_PRESERVE_ORDER
static String
KEY_RANDOM_SEED
static String
KEY_STORE_TESTDATA_PREDICTIONS
static String
KEY_TEST
static String
VALUE_CROSS_VALIDATION
static String
VALUE_PERCENTAGE_SPLIT
static String
VALUE_SUPPLIED_TEST_SET
static String
VALUE_TRAINING_SET
-
Fields inherited from class weka.gui.explorer.AbstractExplorerPanelHandler
m_SkipHistory
-
-
Constructor Summary
Constructors Constructor Description ClassifierHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deserialize(weka.gui.explorer.Explorer.ExplorerPanel panel, Object data)
Deserializes the data and configures the panel.boolean
handles(weka.gui.explorer.Explorer.ExplorerPanel panel)
Checks whether this handler can process the given panel.Object
serialize(weka.gui.explorer.Explorer.ExplorerPanel panel)
Generates a view of the explorer panel that can be serialized.-
Methods inherited from class weka.gui.explorer.AbstractExplorerPanelHandler
deserialize, deserialize, getHandlers, getSkipHistory, getValue, restoreGOE, restoreSelectedIndex, restoreSelectedIndices, restoreSelectedState, restoreSelectedState, restoreSpinner, restoreText, serialize, serialize, setSkipHistory
-
-
-
-
Field Detail
-
KEY_EVALUATION_METRICS
public static final String KEY_EVALUATION_METRICS
- See Also:
- Constant Field Values
-
KEY_OUTPUT_SOURCE_CODE
public static final String KEY_OUTPUT_SOURCE_CODE
- See Also:
- Constant Field Values
-
KEY_PRESERVE_ORDER
public static final String KEY_PRESERVE_ORDER
- See Also:
- Constant Field Values
-
KEY_RANDOM_SEED
public static final String KEY_RANDOM_SEED
- See Also:
- Constant Field Values
-
KEY_COST_SENSITIVE_EVALUATION
public static final String KEY_COST_SENSITIVE_EVALUATION
- See Also:
- Constant Field Values
-
KEY_OUTPUT_PREDICTIONS
public static final String KEY_OUTPUT_PREDICTIONS
- See Also:
- Constant Field Values
-
KEY_ERROR_PLOT_POINT_SIZE
public static final String KEY_ERROR_PLOT_POINT_SIZE
- See Also:
- Constant Field Values
-
KEY_STORE_TESTDATA_PREDICTIONS
public static final String KEY_STORE_TESTDATA_PREDICTIONS
- See Also:
- Constant Field Values
-
KEY_COLLECT_PREDICTIONS_FOR_EVALUATION
public static final String KEY_COLLECT_PREDICTIONS_FOR_EVALUATION
- See Also:
- Constant Field Values
-
KEY_OUTPUT_CONFUSION_MATRIX
public static final String KEY_OUTPUT_CONFUSION_MATRIX
- See Also:
- Constant Field Values
-
KEY_OUTPUT_ENTROPY
public static final String KEY_OUTPUT_ENTROPY
- See Also:
- Constant Field Values
-
KEY_OUTPUT_PER_CLASS
public static final String KEY_OUTPUT_PER_CLASS
- See Also:
- Constant Field Values
-
KEY_OUTPUT_MODEL
public static final String KEY_OUTPUT_MODEL
- See Also:
- Constant Field Values
-
KEY_PERCENTAGE_SPLIT
public static final String KEY_PERCENTAGE_SPLIT
- See Also:
- Constant Field Values
-
KEY_CV_FOLDS
public static final String KEY_CV_FOLDS
- See Also:
- Constant Field Values
-
KEY_TEST
public static final String KEY_TEST
- See Also:
- Constant Field Values
-
KEY_CLASS_INDEX
public static final String KEY_CLASS_INDEX
- See Also:
- Constant Field Values
-
VALUE_PERCENTAGE_SPLIT
public static final String VALUE_PERCENTAGE_SPLIT
- See Also:
- Constant Field Values
-
VALUE_CROSS_VALIDATION
public static final String VALUE_CROSS_VALIDATION
- See Also:
- Constant Field Values
-
VALUE_SUPPLIED_TEST_SET
public static final String VALUE_SUPPLIED_TEST_SET
- See Also:
- Constant Field Values
-
VALUE_TRAINING_SET
public static final String VALUE_TRAINING_SET
- See Also:
- Constant Field Values
-
-
Method Detail
-
handles
public boolean handles(weka.gui.explorer.Explorer.ExplorerPanel panel)
Checks whether this handler can process the given panel.- Specified by:
handles
in classAbstractExplorerPanelHandler
- Parameters:
panel
- the panel to check- Returns:
- always true
-
serialize
public Object serialize(weka.gui.explorer.Explorer.ExplorerPanel panel)
Generates a view of the explorer panel that can be serialized.- Specified by:
serialize
in classAbstractExplorerPanelHandler
- Parameters:
panel
- the panel to serialize- Returns:
- the data to serialize
-
deserialize
public void deserialize(weka.gui.explorer.Explorer.ExplorerPanel panel, Object data)
Deserializes the data and configures the panel.- Specified by:
deserialize
in classAbstractExplorerPanelHandler
- Parameters:
panel
- the panel to updatedata
- the serialized data to restore the panel with
-
-