/** * 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; }
/** * 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 */ @Override protected void setUp() throws Exception { super.setUp(); m_OptionTester = new CheckOptionHandler(); m_OptionTester.setOptionHandler(getOptionHandler()); m_OptionTester.setUserOptions(new String[0]); m_OptionTester.setSilent(true); }
/** * Configures the CheckOptionHandler uses for testing the optionhandling. * Sets the scheme to test. * * @return the fully configured CheckOptionHandler */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); result.setOptionHandler(null); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
/** * Called by JUnit before each test method. * * @throws Exception if an error occurs */ @Override protected void setUp() throws Exception { super.setUp(); m_OptionTester = new CheckOptionHandler(); m_OptionTester.setOptionHandler(getOptionHandler()); m_OptionTester.setUserOptions(new String[0]); m_OptionTester.setSilent(true); }
/** * Configures the CheckOptionHandler uses for testing the optionhandling. * Sets the scheme to test. * * @return the fully configured CheckOptionHandler */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); result.setOptionHandler(null); result.setUserOptions(new String[0]); result.setSilent(true); 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 = new CheckOptionHandler(); result.setOptionHandler(getGenerator()); result.setUserOptions(new String[0]); result.setSilent(true); 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 = new CheckOptionHandler(); result.setOptionHandler(getGenerator()); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
/** * Configures the CheckOptionHandler uses for testing the optionhandling. Sets * the search return from the getSearch() method. * * @return the fully configured CheckOptionHandler * @see #getSearch() */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); result.setOptionHandler(getSearch()); result.setUserOptions(new String[0]); result.setSilent(true); 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 = new CheckOptionHandler(); result.setOptionHandler((OptionHandler) getClassifier()); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
/** * Configures the CheckOptionHandler uses for testing the option handling. * Sets the NearestNeighbourSearch returned from the * getNearestNeighbourSearch() method * * @return the fully configured CheckOptionHandler * @see #getNearestNeighbourSearch() */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); result.setOptionHandler(getNearestNeighbourSearch()); result.setUserOptions(new String[0]); result.setSilent(true); 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 = new CheckOptionHandler(); result.setOptionHandler((OptionHandler) getClassifier()); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
/** * Configures the CheckOptionHandler uses for testing the option handling. * Sets the NearestNeighbourSearch returned from the * getNearestNeighbourSearch() method * * @return the fully configured CheckOptionHandler * @see #getNearestNeighbourSearch() */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); result.setOptionHandler(getNearestNeighbourSearch()); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
/** * Configures the CheckOptionHandler uses for testing the optionhandling. * Sets the scheme to test. * * @param o the object to test * @return the fully configured CheckOptionHandler */ protected CheckOptionHandler getOptionTester(Object o) { CheckOptionHandler result; result = new CheckOptionHandler(); if (o instanceof OptionHandler) result.setOptionHandler((OptionHandler) o); else result.setOptionHandler(null); result.setUserOptions(new String[0]); result.setSilent(true); 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 = new CheckOptionHandler(); if (getFilter() instanceof OptionHandler) result.setOptionHandler((OptionHandler) getFilter()); else result.setOptionHandler(null); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
/** * Configures the CheckOptionHandler used for testing the optionhandling. * Sets the Associator returned from the getAssociator() method. * * @return the fully configured CheckOptionHandler * @see #getAssociator() */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); if (getAssociator() instanceof OptionHandler) result.setOptionHandler((OptionHandler) getAssociator()); else result.setOptionHandler(null); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
/** * Configures the CheckOptionHandler uses for testing the optionhandling. * Sets the Kernel return from the getKernel() method. * * @return the fully configured CheckOptionHandler * @see #getKernel() */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); if (getKernel() instanceof OptionHandler) result.setOptionHandler((OptionHandler) getKernel()); else result.setOptionHandler(null); result.setUserOptions(new String[0]); result.setSilent(true); 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 = new CheckOptionHandler(); if (getClusterer() instanceof OptionHandler) result.setOptionHandler((OptionHandler) getClusterer()); else result.setOptionHandler(null); result.setUserOptions(new String[0]); result.setSilent(true); return result; }
/** * Configures the CheckOptionHandler used for testing the optionhandling. * Sets the Associator returned from the getAssociator() method. * * @return the fully configured CheckOptionHandler * @see #getAssociator() */ protected CheckOptionHandler getOptionTester() { CheckOptionHandler result; result = new CheckOptionHandler(); if (getAssociator() instanceof OptionHandler) result.setOptionHandler((OptionHandler) getAssociator()); else result.setOptionHandler(null); result.setUserOptions(new String[0]); result.setSilent(true); 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 = new CheckOptionHandler(); if (getFilter() instanceof OptionHandler) result.setOptionHandler((OptionHandler) getFilter()); else result.setOptionHandler(null); result.setUserOptions(new String[0]); result.setSilent(true); return result; }