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 javax.swing.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.45 $
- Author:
- Len Trigg (trigg@cs.waikato.ac.nz)
- Author:
- Mark Hall (mhall@cs.waikato.ac.nz)
ClassifierPanel()
- Creates the classifier panel
main(String[])
- Tests out the classifier panel from the command line.
setInstances(Instances)
- Tells the panel to use a new set of instances.
setLog(Logger)
- Sets the Logger to receive informational messages
setPreprocess(PreprocessPanel)
- Sets the preprocess panel through which user selected
filters can be applied to any supplied test data
setXY_VisualizeIndexes(int, int)
- Set the default attributes to use on the x and y axis
of a new visualization object.
ClassifierPanel
public ClassifierPanel()
Creates the classifier panel
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
setLog
public void setLog(Logger newLog)
Sets the Logger to receive informational messages
- Parameters:
newLog
- the Logger that will now get info messages
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
setInstances
public void setInstances(Instances inst)
Tells the panel to use a new set of instances.
- Parameters:
inst
- a set of Instances
main
public static void main(java.lang.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