source: branches/MetisMQI/src/test/java/weka/attributeSelection/ClassifierAttributeEvalTest.java @ 29

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

Taggata versione per la demo e aggiunto branch.

File size: 2.0 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 * Copyright (C) 2009 University of Waikato, Hamilton, New Zealand
19 */
20
21package weka.attributeSelection;
22
23import junit.framework.Test;
24import junit.framework.TestSuite;
25import junit.textui.TestRunner;
26
27/**
28 * Tests ClassifierAttributeEval. Run from the command line with:<p/>
29 * java weka.attributeSelection.ClassifierAttributeEvalTest
30 *
31 * @author FracPete (fracpete at waikato dot ac dot nz)
32 * @version $Revision: 5839 $
33 */
34public class ClassifierAttributeEvalTest 
35  extends AbstractEvaluatorTest {
36
37  /**
38   * Initializes the test.
39   *
40   * @param name        the name of the test
41   */
42  public ClassifierAttributeEvalTest(String name) { 
43    super(name); 
44  }
45
46  /**
47   * Creates a default Ranker.
48   *
49   * @return            the search algorithm
50   */
51  public ASSearch getSearch() {
52    return new Ranker();
53  }
54
55  /**
56   * Creates a default ClassifierAttributeEval.
57   *
58   * @return            the evaluator
59   */
60  public ASEvaluation getEvaluator() {
61    return new ClassifierAttributeEval();
62  }
63
64  /**
65   * Returns a test suite.
66   *
67   * @return            the suite
68   */
69  public static Test suite() {
70    return new TestSuite(ClassifierAttributeEvalTest.class);
71  }
72
73  /**
74   * Runs the test from commandline.
75   *
76   * @param args        ignored
77   */
78  public static void main(String[] args){
79    TestRunner.run(suite());
80  }
81}
Note: See TracBrowser for help on using the repository browser.