source: src/test/java/weka/classifiers/functions/RBFNetworkTest.java @ 24

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

Import di weka.

File size: 1.9 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) 2005 University of Waikato, Hamilton, New Zealand
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 RBFNetwork. Run from the command line with:<p/>
32 * java weka.classifiers.functions.RBFNetworkTest
33 *
34 * @author FracPete (fracpete at waikato dot ac dot nz)
35 * @version $Revision: 1.3 $
36 */
37public class RBFNetworkTest 
38  extends AbstractClassifierTest {
39
40  public RBFNetworkTest(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(40);
54   
55    return result;
56  }
57
58  /** Creates a default RBFNetwork */
59  public Classifier getClassifier() {
60    return new RBFNetwork();
61  }
62
63  public static Test suite() {
64    return new TestSuite(RBFNetworkTest.class);
65  }
66
67  public static void main(String[] args){
68    junit.textui.TestRunner.run(suite());
69  }
70}
Note: See TracBrowser for help on using the repository browser.