类 BoundaryVisualizer
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
weka.gui.boundaryvisualizer.BoundaryVisualizer
BoundaryVisualizer. Allows the visualization of classifier decision
boundaries in two dimensions. A supplied classifier is first
trained on supplied training data, then a data generator (currently
using kernels) is used to generate new instances at points fixed in
the two visualization dimensions but random in the other
dimensions. These instances are classified by the classifier and
plotted as points with colour corresponding to the probability
distribution predicted by the classifier. At present, 2 * 2^(#
non-fixed dimensions) points are generated from each kernel per
pixel in the display. In practice, fewer points than this are
actually classified because kernels are weighted (on a per-pixel
basis) according to the fixexd dimensions and kernels corresponding
to the lowest 1% of the weight mass are discarded. Predicted
probability distributions are weighted (acording to the fixed
visualization dimensions) and averaged to produce an RGB value for
the pixel. For more information, see
Eibe Frank and Mark Hall (2003). Visualizing Class Probability Estimators. Working Paper 02/03, Department of Computer Science, University of Waikato.
-
嵌套类概要
从类继承的嵌套类/接口 javax.swing.JComponent
JComponent.AccessibleJComponent
从类继承的嵌套类/接口 java.awt.Component
Component.BaselineResizeBehavior
-
字段概要
从类继承的字段 javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
从类继承的字段 java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
从接口继承的字段 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void
createNewVisualizerWindow
(Classifier classifier, Instances instances) Creates a new GUI window with all of the BoundaryVisualizer trappings,static boolean
Gets whether System.exit gets called after the last window gets closedGet the training instancesReturns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.Returns a string describing this toolstatic void
Main method for testing this classvoid
Plots the training data on-screen.void
setClassifier
(Classifier newClassifier) Set a classifier to usestatic void
setExitIfNoWindowsOpen
(boolean value) Sets whether System.exit gets called when no more windows are open.void
setInstances
(Instances inst) Set the training instancesvoid
Queries the user for a file to load instances from, then loads the instances in a background process.int
Sets up the BoundaryPanel object so that it is ready for plotting.void
Stops the plotting thread.从类继承的方法 javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
从类继承的方法 javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
从类继承的方法 java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
从类继承的方法 java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
构造器详细资料
-
BoundaryVisualizer
public BoundaryVisualizer()Creates a newBoundaryVisualizer
instance.
-
-
方法详细资料
-
globalInfo
Returns a string describing this tool- 返回:
- a description of the tool suitable for displaying in various Weka GUIs
-
getTechnicalInformation
Returns an instance of a TechnicalInformation object, containing detailed information about the technical background of this class, e.g., paper reference or book this class is based on.- 指定者:
getTechnicalInformation
在接口中TechnicalInformationHandler
- 返回:
- the technical information about this class
-
setClassifier
Set a classifier to use- 参数:
newClassifier
- the classifier to use- 抛出:
Exception
- if an error occurs
-
getInstances
Get the training instances- 返回:
- the training instances
-
setInstances
Set the training instances- 参数:
inst
- the instances to use- 抛出:
Exception
-
setInstancesFromFileQ
public void setInstancesFromFileQ()Queries the user for a file to load instances from, then loads the instances in a background process. This is done in the IO thread, and an error message is popped up if the IO thread is busy. -
setUpBoundaryPanel
Sets up the BoundaryPanel object so that it is ready for plotting.- 返回:
- an error code:
0 - SUCCESS
1 - ERROR - Kernel bandwidth < 0
2 - ERROR - Kernel bandwidth >= number of training instances. - 抛出:
Exception
-
plotTrainingData
Plots the training data on-screen. Also does all of the setup required for this to work.- 抛出:
Exception
-
stopPlotting
public void stopPlotting()Stops the plotting thread. -
setExitIfNoWindowsOpen
public static void setExitIfNoWindowsOpen(boolean value) Sets whether System.exit gets called when no more windows are open.- 参数:
value
- if TRUE then a System.exit call is ossued after the last window gets closed.
-
getExitIfNoWindowsOpen
public static boolean getExitIfNoWindowsOpen()Gets whether System.exit gets called after the last window gets closed- 返回:
- TRUE if System.exit gets called after last window got closed.
-
createNewVisualizerWindow
public static void createNewVisualizerWindow(Classifier classifier, Instances instances) throws Exception Creates a new GUI window with all of the BoundaryVisualizer trappings,- 参数:
classifier
- The classifier to use in the new window. May be null.instances
- The dataset to visualize on in the new window. May be null.- 抛出:
Exception
-
main
Main method for testing this class- 参数:
args
- aString[]
value
-