Package weka.gui.visualize.plugins
Class ClassRangeBasedClassifierErrors
- java.lang.Object
-
- weka.gui.visualize.plugins.ClassRangeBasedClassifierErrors
-
- All Implemented Interfaces:
weka.gui.visualize.plugins.ErrorVisualizePlugin
public class ClassRangeBasedClassifierErrors extends Object implements weka.gui.visualize.plugins.ErrorVisualizePlugin
Displays the classifier errors using Weka panels, but with a sizes adjusted to the class range. Only works with numeric class attributes.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description static int
REFERENCE_SIZE
the error size of the reference error (mid-class range).
-
Constructor Summary
Constructors Constructor Description ClassRangeBasedClassifierErrors()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDesignVersion()
Get the specific version of Weka the class is designed for.String
getMaxVersion()
Get the maximum version of Weka, exclusive, the class is designed to work with.String
getMinVersion()
Get the minimum version of Weka, inclusive, the class is designed to work with.JMenuItem
getVisualizeMenuItem(weka.core.Instances predInst)
Get a JMenu or JMenuItem which contain action listeners that perform the visualization of the classifier errors.
-
-
-
Field Detail
-
REFERENCE_SIZE
public static final int REFERENCE_SIZE
the error size of the reference error (mid-class range).- See Also:
- Constant Field Values
-
-
Method Detail
-
getVisualizeMenuItem
public JMenuItem getVisualizeMenuItem(weka.core.Instances predInst)
Get a JMenu or JMenuItem which contain action listeners that perform the visualization of the classifier errors.
The actual class is the attribute declared as class attribute, the predicted class values is found in the attribute prior to the class attribute's position. In other words, if theclassIndex()
method returns 10, then the attribute position for the predicted class values is 9.
Exceptions thrown because of changes in Weka since compilation need to be caught by the implementer.- Specified by:
getVisualizeMenuItem
in interfaceweka.gui.visualize.plugins.ErrorVisualizePlugin
- Parameters:
predInst
- the instances with the actual and predicted class values- Returns:
- menuitem for opening visualization(s), or null to indicate no visualization is applicable for the input
- See Also:
NoClassDefFoundError
,IncompatibleClassChangeError
-
getMinVersion
public String getMinVersion()
Get the minimum version of Weka, inclusive, the class is designed to work with. eg:3.5.0
- Specified by:
getMinVersion
in interfaceweka.gui.visualize.plugins.ErrorVisualizePlugin
- Returns:
- the minimum version
-
getMaxVersion
public String getMaxVersion()
Get the maximum version of Weka, exclusive, the class is designed to work with. eg:3.6.0
- Specified by:
getMaxVersion
in interfaceweka.gui.visualize.plugins.ErrorVisualizePlugin
- Returns:
- the maximum version
-
getDesignVersion
public String getDesignVersion()
Get the specific version of Weka the class is designed for. eg:3.5.1
- Specified by:
getDesignVersion
in interfaceweka.gui.visualize.plugins.ErrorVisualizePlugin
- Returns:
- the version the plugin was designed for
-
-