All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.gui.explorer.ClassifierPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----javax.swing.JPanel
                                   |
                                   +----weka.gui.explorer.ClassifierPanel

public class ClassifierPanel
extends JPanel
This panel allows the user to select and configure a classifier, set the attribute of the current dataset to be used as the class, and evaluate the classifier using a number of testing modes (test on the training data, train/test on a percentage split, n-fold cross-validation, test on a separate split). The results of classification runs are stored in a result history so that previous results are accessible.

Version:
$Revision: 1.19 $
Author:
Len Trigg (trigg@cs.waikato.ac.nz)

Constructor Index

 o ClassifierPanel()
Creates the classifier panel

Method Index

 o main(String[])
Tests out the classifier panel from the command line.
 o setInstances(Instances)
Tells the panel to use a new set of instances.
 o setLog(Logger)
Sets the Logger to receive informational messages
 o setPreprocess(PreprocessPanel)
Sets the preprocess panel through which user selected filters can be applied to any supplied test data
 o setXY_VisualizeIndexes(int, int)
Set the default attributes to use on the x and y axis of a new visualization object.

Constructors

 o ClassifierPanel
 public ClassifierPanel()
Creates the classifier panel

Methods

 o setPreprocess
 public void setPreprocess(PreprocessPanel p)
Sets the preprocess panel through which user selected filters can be applied to any supplied test data

Parameters:
p - the preprocess panel to use
 o setLog
 public void setLog(Logger newLog)
Sets the Logger to receive informational messages

Parameters:
newLog - the Logger that will now get info messages
 o setXY_VisualizeIndexes
 public void setXY_VisualizeIndexes(int x,
                                    int y)
Set the default attributes to use on the x and y axis of a new visualization object.

Parameters:
x - the index of the attribute to use on the x axis
y - the index of the attribute to use on the y axis
 o setInstances
 public void setInstances(Instances inst)
Tells the panel to use a new set of instances.

Parameters:
inst - a set of Instances
 o main
 public static void main(String args[])
Tests out the classifier panel from the command line.

Parameters:
args - may optionally contain the name of a dataset to load.

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home