Package weka.experiment

Examples of weka.experiment.RandomSplitResultProducer


     
      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),
View Full Code Here


      }

    } else {
     
      if (m_Exp.getResultProducer() instanceof RandomSplitResultProducer) {
  RandomSplitResultProducer rsrp = (RandomSplitResultProducer) m_Exp.getResultProducer();
  rsrp.setRandomizeData(m_ExperimentTypeCBox.getSelectedItem() == TYPE_RANDOMSPLIT_TEXT);
  rsrp.setTrainPercent(m_trainPercent);
      } else {
  //System.err.println("not rsrp");
  return;
      }
    }
View Full Code Here

    return false;
  }
      }
      m_ExperimentTypeCBox.setSelectedItem(TYPE_CROSSVALIDATION_TEXT);
    } else if (exp.getResultProducer() instanceof RandomSplitResultProducer) {
      RandomSplitResultProducer rsrp = (RandomSplitResultProducer) exp.getResultProducer();
      if (rsrp.getRandomizeData()) {
  m_ExperimentTypeCBox.setSelectedItem(TYPE_RANDOMSPLIT_TEXT);
      } else {
  m_ExperimentTypeCBox.setSelectedItem(TYPE_FIXEDSPLIT_TEXT);
      }
      if (rsrp.getSplitEvaluator() instanceof ClassifierSplitEvaluator) {
  m_ExpClassificationRBut.setSelected(true);
  m_ExpRegressionRBut.setSelected(false);
      } else if (rsrp.getSplitEvaluator() instanceof RegressionSplitEvaluator) {
  m_ExpClassificationRBut.setSelected(false);
  m_ExpRegressionRBut.setSelected(true);
      } else {
  // unknown split evaluator
  System.out.println(Messages.getInstance().getString("SimpleSetupPanel_SetExperiment_UnknownSplitEvaluator_Text_First"));
  if (userWantsToConvert()) {
    m_ExpClassificationRBut.setSelected(true);
    m_ExpRegressionRBut.setSelected(false);
  } else {
    return false;
  }
      }
      m_trainPercent = rsrp.getTrainPercent();
      m_ExperimentParameterTField.setText("" + m_trainPercent);
     
    } else {
      // unknown experiment type
      System.out.println(Messages.getInstance().getString("SimpleSetupPanel_SetExperiment_UnknownPropertyIteration_Text"));
View Full Code Here

    return false;
  }
      }
      m_ExperimentTypeCBox.setSelectedItem(TYPE_CROSSVALIDATION_TEXT);
    } else if (exp.getResultProducer() instanceof RandomSplitResultProducer) {
      RandomSplitResultProducer rsrp = (RandomSplitResultProducer) exp.getResultProducer();
      if (rsrp.getRandomizeData()) {
  m_ExperimentTypeCBox.setSelectedItem(TYPE_RANDOMSPLIT_TEXT);
      } else {
  m_ExperimentTypeCBox.setSelectedItem(TYPE_FIXEDSPLIT_TEXT);
      }
      if (rsrp.getSplitEvaluator() instanceof ClassifierSplitEvaluator) {
  m_ExpClassificationRBut.setSelected(true);
  m_ExpRegressionRBut.setSelected(false);
      } else if (rsrp.getSplitEvaluator() instanceof RegressionSplitEvaluator) {
  m_ExpClassificationRBut.setSelected(false);
  m_ExpRegressionRBut.setSelected(true);
      } else {
  // unknown split evaluator
  System.out.println("SimpleSetup incompatibility: unrecognised split evaluator");
  if (userWantsToConvert()) {
    m_ExpClassificationRBut.setSelected(true);
    m_ExpRegressionRBut.setSelected(false);
  } else {
    return false;
  }
      }
      m_trainPercent = rsrp.getTrainPercent();
      m_ExperimentParameterTField.setText("" + m_trainPercent);
     
    } else {
      // unknown experiment type
      System.out.println("SimpleSetup incompatibility: unrecognised resultProducer");
View Full Code Here

     
      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),
View Full Code Here

      }

    } else {
     
      if (m_Exp.getResultProducer() instanceof RandomSplitResultProducer) {
  RandomSplitResultProducer rsrp = (RandomSplitResultProducer) m_Exp.getResultProducer();
  rsrp.setRandomizeData(m_ExperimentTypeCBox.getSelectedItem() == TYPE_RANDOMSPLIT_TEXT);
  rsrp.setTrainPercent(m_trainPercent);
      } else {
  //System.err.println("not rsrp");
  return;
      }
    }
View Full Code Here

    return false;
  }
      }
      m_ExperimentTypeCBox.setSelectedItem(TYPE_CROSSVALIDATION_TEXT);
    } else if (exp.getResultProducer() instanceof RandomSplitResultProducer) {
      RandomSplitResultProducer rsrp = (RandomSplitResultProducer) exp.getResultProducer();
      if (rsrp.getRandomizeData()) {
  m_ExperimentTypeCBox.setSelectedItem(TYPE_RANDOMSPLIT_TEXT);
      } else {
  m_ExperimentTypeCBox.setSelectedItem(TYPE_FIXEDSPLIT_TEXT);
      }
      if (rsrp.getSplitEvaluator() instanceof ClassifierSplitEvaluator) {
  m_ExpClassificationRBut.setSelected(true);
  m_ExpRegressionRBut.setSelected(false);
      } else if (rsrp.getSplitEvaluator() instanceof RegressionSplitEvaluator) {
  m_ExpClassificationRBut.setSelected(false);
  m_ExpRegressionRBut.setSelected(true);
      } else {
  // unknown split evaluator
  System.out.println("SimpleSetup incompatibility: unrecognised split evaluator");
  if (userWantsToConvert()) {
    m_ExpClassificationRBut.setSelected(true);
    m_ExpRegressionRBut.setSelected(false);
  } else {
    return false;
  }
      }
      m_trainPercent = rsrp.getTrainPercent();
      m_ExperimentParameterTField.setText("" + m_trainPercent);
     
    } else {
      // unknown experiment type
      System.out.println("SimpleSetup incompatibility: unrecognised resultProducer");
View Full Code Here

     
      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),
View Full Code Here

      }

    } else {
     
      if (m_Exp.getResultProducer() instanceof RandomSplitResultProducer) {
  RandomSplitResultProducer rsrp = (RandomSplitResultProducer) m_Exp.getResultProducer();
  rsrp.setRandomizeData(m_ExperimentTypeCBox.getSelectedItem() == TYPE_RANDOMSPLIT_TEXT);
  rsrp.setTrainPercent(m_trainPercent);
      } else {
  //System.err.println("not rsrp");
  return;
      }
    }
View Full Code Here

TOP

Related Classes of weka.experiment.RandomSplitResultProducer

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.