public class ClassifyTab extends AbstractThreadedExplorerTab
Modifier and Type | Class and Description |
---|---|
class |
ClassifyTab.HistoryCustomizer
Customizer for the history's popup menu.
|
AbstractThreadedExplorerTab.WorkerThread
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected HashMap<AbstractClassifyTabMenuItem,JMenuItem> |
m_AdditionalMenuItems
the additional menu items.
|
protected JButton |
m_ButtonOptions
the button for the options dialog.
|
protected JButton |
m_ButtonStart
the button for running an experiment.
|
protected JButton |
m_ButtonStop
the button for stopping an experiment.
|
protected ClassifyTabOptions |
m_ClassifyTabOptions
the panel with the options.
|
protected JComboBox |
m_ComboBoxExperiment
the type of experiment to perform.
|
protected int |
m_Folds
the number of folds.
|
protected GenericObjectEditor |
m_GenericObjectEditor
the GOE for the classifier.
|
protected IncrementalMultiLabelClassifier |
m_LastIncrementalClassifier
the last incremental classifier in use.
|
protected MultiLabelClassifier |
m_LastNonIncrementalClassifier
the last non-incremental classifier in use.
|
protected JMenu |
m_Menu
the custom menu.
|
protected JPanel |
m_PanelGOE
the panel for the GOE.
|
protected boolean |
m_Randomize
the randomize option.
|
protected ResultHistoryList |
m_ResultHistoryList
the result history.
|
protected int |
m_Samples
the number of samples for prequential evaluation.
|
protected int |
m_Seed
the seed value.
|
protected double |
m_SplitPercentage
the percentage split.
|
protected weka.core.Instances |
m_TestInstances
the test Instances.
|
protected JTextArea |
m_TextAreaResults
the text area for displaying the results.
|
protected String |
m_TOP
the threshold option.
|
protected String |
m_VOP
the verbosity option.
|
static String |
TYPE_BINCREMENTAL
incremental batch train/test split.
|
static String |
TYPE_CROSSVALIDATION
cross-validation.
|
static String |
TYPE_PREQUENTIAL
incremental pequential.
|
static String |
TYPE_SUPPLIEDTESTSET
supplied test set.
|
static String |
TYPE_TRAINTESTSPLIT
train/test split.
|
m_Task
m_Data, m_Owner, m_Session
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
ClassifyTab() |
Modifier and Type | Method and Description |
---|---|
void |
addResultToHistory(Result result,
Object payload,
String suffix)
Adds the result to the history.
|
protected void |
displayResults()
Displays the selected results.
|
protected void |
executionFinished(Throwable t)
Gets called when the thread finishes or gets stopped.
|
protected void |
executionStarted()
Gets called when the thread starts.
|
MultiLabelClassifier |
getClassifier()
Returns the current classifier.
|
JMenu |
getMenu()
Returns an optional menu to be added to the Explorer menu.
|
weka.core.Instances |
getTestData()
Returns the test instances, if any.
|
String |
getTitle()
Returns the title of the tab.
|
String |
getTOP()
Returns the threshold option.
|
String |
getVOP()
Returns the verbosity option.
|
protected void |
initGUI()
Initializes the widgets.
|
protected void |
initialize()
Initializes the members.
|
void |
setTestData(weka.core.Instances value)
Sets the test instances.
|
protected void |
showOptions()
Brings up the dialog with the classification options.
|
protected void |
startClassification()
Starts the classification.
|
protected void |
stopClassification()
Stops the classification, if running.
|
protected void |
update()
Gets called when the data changed.
|
protected void |
updateGOE()
Updates the GOE for the classifier.
|
protected void |
updateMenu()
Updates the enabled/disabled state of the menu items.
|
executionFinalized, isRunning, start, stop
clearStatus, finishBusy, finishBusy, getData, getOwner, getSession, getTabs, handleException, hasData, log, setData, setOwner, showStatus, startBusy, startBusy
closeParent, finishInit, getParentDialog, getParentFrame
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final String TYPE_CROSSVALIDATION
public static final String TYPE_TRAINTESTSPLIT
public static final String TYPE_SUPPLIEDTESTSET
public static final String TYPE_BINCREMENTAL
public static final String TYPE_PREQUENTIAL
protected JPanel m_PanelGOE
protected GenericObjectEditor m_GenericObjectEditor
protected JTextArea m_TextAreaResults
protected ResultHistoryList m_ResultHistoryList
protected JButton m_ButtonStart
protected JButton m_ButtonStop
protected JComboBox m_ComboBoxExperiment
protected JButton m_ButtonOptions
protected int m_Seed
protected double m_SplitPercentage
protected String m_TOP
protected String m_VOP
protected boolean m_Randomize
protected int m_Folds
protected int m_Samples
protected ClassifyTabOptions m_ClassifyTabOptions
protected weka.core.Instances m_TestInstances
protected MultiLabelClassifier m_LastNonIncrementalClassifier
protected IncrementalMultiLabelClassifier m_LastIncrementalClassifier
protected JMenu m_Menu
protected HashMap<AbstractClassifyTabMenuItem,JMenuItem> m_AdditionalMenuItems
protected void initialize()
initialize
in class AbstractThreadedExplorerTab
protected void updateGOE()
protected void startClassification()
protected void stopClassification()
protected void showOptions()
public void addResultToHistory(Result result, Object payload, String suffix)
result
- the result to addpayload
- the payload to addsuffix
- the suffix to addprotected void displayResults()
public String getTitle()
getTitle
in class AbstractExplorerTab
protected void update()
update
in class AbstractExplorerTab
protected void executionStarted()
executionStarted
in class AbstractThreadedExplorerTab
protected void executionFinished(Throwable t)
executionFinished
in class AbstractThreadedExplorerTab
t
- if the execution generated an exception, null if no errorspublic MultiLabelClassifier getClassifier()
public void setTestData(weka.core.Instances value)
value
- the test instances, null if to removepublic weka.core.Instances getTestData()
public String getTOP()
public String getVOP()
public JMenu getMenu()
getMenu
in class AbstractExplorerTab
protected void updateMenu()
Copyright © 2017. All Rights Reserved.