Java 类weka.core.CheckOptionHandler 实例源码

项目:autoweka    文件:AbstractSearchTest.java   
/**
 * 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;
}
项目:autoweka    文件:AbstractEvaluatorTest.java   
/**
 * 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;
}
项目:autoweka    文件:AttributeSelectedClassifierTest.java   
/**
  * 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;
 }
项目:autoweka    文件:SerializedClassifierTest.java   
/**
 * 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();
}
项目:umple    文件:AbstractSearchTest.java   
/**
 * 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;
}
项目:umple    文件:AbstractEvaluatorTest.java   
/**
 * 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;
}
项目:umple    文件:AttributeSelectedClassifierTest.java   
/**
  * 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;
 }
项目:umple    文件:SerializedClassifierTest.java   
/**
 * 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();
  }
}
项目:autoweka    文件:AbstractConverterTest.java   
/**
 * 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());
}
项目:autoweka    文件:AbstractConverterTest.java   
/**
 * 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());
}
项目:umple    文件:AbstractConverterTest.java   
/**
 * 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());
}
项目:umple    文件:AbstractConverterTest.java   
/**
 * 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());
}