All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.gui.boundaryvisualizer.BoundaryVisualizer
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----javax.swing.JComponent
|
+----javax.swing.JPanel
|
+----weka.gui.boundaryvisualizer.BoundaryVisualizer
- public class BoundaryVisualizer
- extends javax.swing.JPanel
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.
- Since:
- 1.0
- Version:
- $Revision: 1.11 $
- Author:
- Mark Hall
- See Also:
- javax.swing.JPanel
BoundaryVisualizer()
- Creates a new
BoundaryVisualizer instance.
getInstances()
- Get the training instances
main(String[])
- Main method for testing this class
setClassifier(Classifier)
- Set a classifier to use
setInstances(Instances)
- Set the training instances
BoundaryVisualizer
public BoundaryVisualizer()
Creates a new BoundaryVisualizer instance.
setClassifier
public void setClassifier(Classifier newClassifier) throws java.lang.Exception
Set a classifier to use
- Parameters:
newClassifier - the classifier to use
- Throws:
- java.lang.Exception - if an error occurs
getInstances
public Instances getInstances()
Get the training instances
- Returns:
- the training instances
setInstances
public void setInstances(Instances inst) throws java.lang.Exception
Set the training instances
- Parameters:
inst - the instances to use
main
public static void main(java.lang.String args[])
Main method for testing this class
- Parameters:
args - a String[] value
All Packages Class Hierarchy This Package Previous Next Index WEKA's home