コード例 #1
0
  /**
   * Called by JUnit before each test method. This implementation creates the default classifier to
   * test and loads a test set of Instances.
   *
   * @exception Exception if an error occurs reading the example instances.
   */
  protected void setUp() throws Exception {
    super.setUp();

    m_Evaluation = new EvaluationUtils();
    m_Instances =
        new Instances(
            new BufferedReader(
                new InputStreamReader(
                    ClassLoader.getSystemResourceAsStream(
                        "weka/classifiers/data/ClassifierTest.arff"))));
  }
コード例 #2
0
  /** Called by JUnit after each test method */
  protected void tearDown() {
    super.tearDown();

    m_Evaluation = null;
  }