source: src/main/java/weka/gui/visualize/plugins/ErrorVisualizePlugin.java @ 19

Last change on this file since 19 was 4, checked in by gnappo, 14 years ago

Import di weka.

File size: 2.7 KB
Line 
1/*
2 *    This program is free software; you can redistribute it and/or modify
3 *    it under the terms of the GNU General Public License as published by
4 *    the Free Software Foundation; either version 2 of the License, or
5 *    (at your option) any later version.
6 *
7 *    This program is distributed in the hope that it will be useful,
8 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
9 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 *    GNU General Public License for more details.
11 *
12 *    You should have received a copy of the GNU General Public License
13 *    along with this program; if not, write to the Free Software
14 *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15 */
16
17/*
18 * ErrorVisualizePlugin.java
19 * Copyright (C) 2009 University of Waikato, Hamilton, New Zealand
20 *
21 */
22
23package weka.gui.visualize.plugins;
24
25import weka.core.Instances;
26
27import javax.swing.JMenuItem;
28
29/**
30 * Interface implemented by classes loaded dynamically to
31 * visualize classifier errors in the explorer.
32 *
33 * @author FracPete (fracpete at waikato dot ac dot nz)
34 * @version $Revision: 5012 $
35 */
36public interface ErrorVisualizePlugin {
37
38  /**
39   * Get a JMenu or JMenuItem which contain action listeners
40   * that perform the visualization of the classifier errors. 
41   * <p/>
42   * The actual class is the attribute declared as class attribute, the
43   * predicted class values is found in the attribute prior to the class
44   * attribute's position. In other words, if the <code>classIndex()</code>
45   * method returns 10, then the attribute position for the predicted class
46   * values is 9.
47   * <p/>
48   * Exceptions thrown because of changes in Weka since compilation need to
49   * be caught by the implementer.
50   *
51   * @see NoClassDefFoundError
52   * @see IncompatibleClassChangeError
53   *
54   * @param predInst    the instances with the actual and predicted class values
55   * @return menuitem   for opening visualization(s), or null
56   *                    to indicate no visualization is applicable for the input
57   */
58  public JMenuItem getVisualizeMenuItem(Instances predInst);
59
60  /**
61   * Get the minimum version of Weka, inclusive, the class
62   * is designed to work with.  eg: <code>3.5.0</code>
63   *
64   * @return            the minimum version
65   */
66  public String getMinVersion();
67
68  /**
69   * Get the maximum version of Weka, exclusive, the class
70   * is designed to work with.  eg: <code>3.6.0</code>
71   *
72   * @return            the maximum version
73   */
74  public String getMaxVersion();
75
76  /**
77   * Get the specific version of Weka the class is designed for.
78   * eg: <code>3.5.1</code>
79   *
80   * @return            the version the plugin was designed for
81   */
82  public String getDesignVersion();
83}
84
85
86
Note: See TracBrowser for help on using the repository browser.