/** * Configures the CheckOptionHandler uses for testing the optionhandling. * Sets the scheme to test. * * @return the fully configured CheckOptionHandler */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = super.getOptionTester(); if (getSearch() instanceof OptionHandler) result.setOptionHandler((OptionHandler) getSearch()); return result; }
/** * Configures the CheckOptionHandler uses for testing the optionhandling. * Sets the scheme to test. * * @return the fully configured CheckOptionHandler */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = super.getOptionTester(); if (getEvaluator() instanceof OptionHandler) result.setOptionHandler((OptionHandler) getEvaluator()); return result; }
/** * Configures the CheckOptionHandler uses for testing the optionhandling. * Sets the classifier return from the getClassifier() method. * * @return the fully configured CheckOptionHandler * @see #getClassifier() */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = super.getOptionTester(); result.setUserOptions(new String[]{ "-E", "weka.attributeSelection.CfsSubsetEval", "-S", "weka.attributeSelection.BestFirst"}); return result; }
/** * Called by JUnit before each test method. * * @throws Exception if an error occurs reading the example instances. */ protected void setUp() throws Exception { m_Classifier = null; m_OptionTester = new CheckOptionHandler(); m_OptionTester.setSilent(true); // delete temp file File file = new File(MODEL_FILENAME); if (file.exists()) file.delete(); }
/** * Called by JUnit before each test method. * * @throws Exception if an error occurs reading the example instances. */ @Override protected void setUp() throws Exception { m_Classifier = null; m_OptionTester = new CheckOptionHandler(); m_OptionTester.setSilent(true); // delete temp file File file = new File(MODEL_FILENAME); if (file.exists()) { file.delete(); } }
/** * Configures the CheckOptionHandler used for testing the option handling * of the loader. * Sets the scheme to test. * * @return the fully configured CheckOptionHandler */ protected CheckOptionHandler getOptionTesterLoader() { return getOptionTester(getLoader()); }
/** * Configures the CheckOptionHandler used for testing the option handling * of the saver. * Sets the scheme to test. * * @return the fully configured CheckOptionHandler */ protected CheckOptionHandler getOptionTesterSaver() { return getOptionTester(getSaver()); }