source: src/test/java/weka/classifiers/functions/PaceRegressionTest.java @ 16

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

Import di weka.

File size: 2.0 KB
RevLine 
[4]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 2001 Malcolm Ware.
19 */
20
21package weka.classifiers.functions;
22
23import weka.classifiers.AbstractClassifierTest;
24import weka.classifiers.CheckClassifier;
25import weka.classifiers.Classifier;
26
27import junit.framework.Test;
28import junit.framework.TestSuite;
29
30/**
31 * Tests PaceRegression. Run from the command line with:<p>
32 * java weka.classifiers.functions.PaceRegressionTest
33 *
34 * @author <a href="mailto:mfw4@cs.waikato.ac.nz">Malcolm Ware</a>
35 * @version $Revision: 1.4 $
36 */
37public class PaceRegressionTest 
38  extends AbstractClassifierTest {
39
40  public PaceRegressionTest(String name) { 
41    super(name); 
42  }
43
44  /**
45   * configures the CheckClassifier instance used throughout the tests
46   *
47   * @return    the fully configured CheckClassifier instance used for testing
48   */
49  protected CheckClassifier getTester() {
50    CheckClassifier     result;
51   
52    result = super.getTester();
53    result.setNumInstances(60);
54   
55    return result;
56  }
57
58  /** Creates a default ThresholdSelector */
59  public Classifier getClassifier() {
60    return new PaceRegression();
61  }
62
63  public static Test suite() {
64    return new TestSuite(PaceRegressionTest.class);
65  }
66
67  public static void main(String[] args){
68    junit.textui.TestRunner.run(suite());
69  }
70
71}
Note: See TracBrowser for help on using the repository browser.