|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
weka.gui.explorer.ExperimentPanel
public class ExperimentPanel
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 perform an Experiment (like in the Experimenter) with this Classifier/Dataset combination. The results of the experiment runs are stored in a result history so that previous results are accessible.
Based on the ClassifierPanel code (by Len Trigg, Mark Hall and Richard Kirkby).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected weka.gui.PropertyPanel |
m_CEPanel
The panel showing the current classifier selection. |
protected JComboBox |
m_ClassCombo
Lets the user select the class column. |
protected weka.gui.GenericObjectEditor |
m_ClassifierEditor
Lets the user configure the classifier. |
protected JComboBox |
m_EvalCombo
The type of evaluation: cross-validation or random split. |
protected weka.gui.explorer.Explorer |
m_Explorer
the parent frame. |
protected JLabel |
m_FoldsPercLabel
The label for either the number of folds or the percentage for the random split. |
protected JTextField |
m_FoldsPercText
Either the number of folds or the percentage for the random split. |
protected weka.gui.ResultHistoryPanel |
m_History
A panel controlling results viewing. |
protected weka.core.Instances |
m_Instances
The main set of instances we're playing with. |
protected weka.gui.Logger |
m_Log
The destination for log/status messages. |
protected JTextArea |
m_OutText
The output area for classification results. |
protected JSpinner |
m_RunsSpinner
The spinner for the number of runs. |
protected Thread |
m_RunThread
A thread that classification runs in. |
protected weka.gui.SaveBuffer |
m_SaveOut
The buffer saving object for saving output. |
protected JButton |
m_StartBut
Click to start running the experiment. |
protected JButton |
m_StopBut
Click to stop a running experiment. |
protected weka.core.converters.Loader |
m_TestLoader
The loader used to load the user-supplied test set (if any). |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ExperimentPanel()
Creates the Experiment panel. |
|
| Method Summary | |
|---|---|
void |
capabilitiesFilterChanged(weka.gui.explorer.Explorer.CapabilitiesFilterChangeEvent e)
method gets called in case of a change event. |
weka.gui.explorer.Explorer |
getExplorer()
returns the parent Explorer frame. |
String |
getTabTitle()
Returns the title for the tab in the Explorer. |
String |
getTabTitleToolTip()
Returns the tooltip for the tab in the Explorer. |
static void |
main(String[] args)
Tests out the Experiment panel from the command line. |
protected void |
saveBuffer(String name)
Save the currently selected experiment output to a file. |
void |
setExplorer(weka.gui.explorer.Explorer parent)
Sets the Explorer to use as parent frame (used for sending notifications about changes in the data). |
void |
setInstances(weka.core.Instances inst)
Tells the panel to use a new set of instances. |
void |
setLog(weka.gui.Logger newLog)
Sets the Logger to receive informational messages. |
protected void |
showPopup(String name,
int x,
int y)
Handles constructing a popup menu with visualization options. |
protected void |
startExperiment()
Starts running the currently configured classifier with the current settings in an experiment. |
protected void |
stopExperiment()
Stops the currently running experiment (if any). |
protected void |
updateCapabilitiesFilter(weka.core.Capabilities filter)
updates the capabilities filter of the GOE. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected weka.gui.explorer.Explorer m_Explorer
protected weka.gui.GenericObjectEditor m_ClassifierEditor
protected weka.gui.PropertyPanel m_CEPanel
protected JTextArea m_OutText
protected weka.gui.Logger m_Log
protected weka.gui.SaveBuffer m_SaveOut
protected weka.gui.ResultHistoryPanel m_History
protected JSpinner m_RunsSpinner
protected JComboBox m_EvalCombo
protected JLabel m_FoldsPercLabel
protected JTextField m_FoldsPercText
protected JComboBox m_ClassCombo
protected JButton m_StartBut
protected JButton m_StopBut
protected weka.core.Instances m_Instances
protected weka.core.converters.Loader m_TestLoader
protected Thread m_RunThread
| Constructor Detail |
|---|
public ExperimentPanel()
| Method Detail |
|---|
public void setLog(weka.gui.Logger newLog)
setLog in interface weka.gui.explorer.Explorer.LogHandlernewLog - the Logger that will now get info messagespublic void setInstances(weka.core.Instances inst)
setInstances in interface weka.gui.explorer.Explorer.ExplorerPanelinst - a set of Instances
protected void showPopup(String name,
int x,
int y)
name - the name of the result history list entry clicked on by
the userx - the x coordinate for popping up the menuy - the y coordinate for popping up the menuprotected void startExperiment()
protected void saveBuffer(String name)
name - the name of the buffer to saveprotected void stopExperiment()
protected void updateCapabilitiesFilter(weka.core.Capabilities filter)
filter - the new filter to usepublic void capabilitiesFilterChanged(weka.gui.explorer.Explorer.CapabilitiesFilterChangeEvent e)
capabilitiesFilterChanged in interface weka.gui.explorer.Explorer.CapabilitiesFilterChangeListenere - the associated change eventpublic void setExplorer(weka.gui.explorer.Explorer parent)
setExplorer in interface weka.gui.explorer.Explorer.ExplorerPanelparent - the parent framepublic weka.gui.explorer.Explorer getExplorer()
getExplorer in interface weka.gui.explorer.Explorer.ExplorerPanelpublic String getTabTitle()
getTabTitle in interface weka.gui.explorer.Explorer.ExplorerPanelpublic String getTabTitleToolTip()
getTabTitleToolTip in interface weka.gui.explorer.Explorer.ExplorerPanelpublic static void main(String[] args)
args - may optionally contain the name of a dataset to load.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||