Package weka.experiment

Examples of weka.experiment.PropertyNode


      cvrp.setNumFolds(m_numFolds);
      cvrp.setSplitEvaluator(se);
     
      PropertyNode[] propertyPath = new PropertyNode[2];
      try {
  propertyPath[0] = new PropertyNode(se, new PropertyDescriptor("splitEvaluator",
                      CrossValidationResultProducer.class),
             CrossValidationResultProducer.class);
  propertyPath[1] = new PropertyNode(sec, new PropertyDescriptor("classifier",
                       se.getClass()),
             se.getClass());
      } catch (IntrospectionException e) {
  e.printStackTrace();
      }
     
      m_Exp.setResultProducer(cvrp);
      m_Exp.setPropertyPath(propertyPath);

    } else {
      RandomSplitResultProducer rsrp = new RandomSplitResultProducer();
      rsrp.setRandomizeData(m_ExperimentTypeCBox.getSelectedItem() == TYPE_RANDOMSPLIT_TEXT);
      rsrp.setTrainPercent(m_trainPercent);
      rsrp.setSplitEvaluator(se);

      PropertyNode[] propertyPath = new PropertyNode[2];
      try {
  propertyPath[0] = new PropertyNode(se, new PropertyDescriptor("splitEvaluator",
                      RandomSplitResultProducer.class),
             RandomSplitResultProducer.class);
  propertyPath[1] = new PropertyNode(sec, new PropertyDescriptor("classifier",
                       se.getClass()),
             se.getClass());
      } catch (IntrospectionException e) {
  e.printStackTrace();
      }
View Full Code Here

TOP

Related Classes of weka.experiment.PropertyNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.