overall_length += NUM_UNWEIGHTED_IR_STATISTICS; if (getAttributeID() >= 0) { overall_length += 1; if (getPredTargetColumn()) { overall_length += 2; if (getAttributeID() >= 0) { resultTypes[current++] = ""; if (getPredTargetColumn()) { resultTypes[current++] = ""; resultTypes[current++] = "";
if (getClassifier() != null) { result.add("-W"); result.add(getClassifier().getClass().getName()); if (getPredTargetColumn()) { result.add("-P"); result.add("" + (m_IRclass + 1)); if (getNoSizeDetermination()) { result.add("-no-size");
/** * Gets the current settings of the Classifier. * * @return an array of strings suitable for passing to setOptions */ @Override public String[] getOptions() { Vector<String> options = new Vector<String>(); options.add("-D"); options.add("" + getOnDemandDirectory()); Collections.addAll(options, super.getOptions()); return options.toArray(new String[0]); }
setClassifier(AbstractClassifier.forName(cName, null)); if (getClassifier() instanceof OptionHandler) { ((OptionHandler) getClassifier()).setOptions(Utils .partitionOptions(options)); updateOptions();
Classifier sec = null; if (m_ExpClassificationRBut.isSelected()) { se = new ClassifierSplitEvaluator(); sec = ((ClassifierSplitEvaluator)se).getClassifier(); } else { se = new RegressionSplitEvaluator();
CrossValidationResultProducer cvrp = new CrossValidationResultProducer(); cvrp.setNumFolds(10); cvrp.setSplitEvaluator(new ClassifierSplitEvaluator()); newExp.setResultProducer(cvrp); newExp.setPropertyArray(new Classifier[0]);
/** * Set the Classifier to use, given it's class name. A new classifier will be * instantiated. * * @param newClassifierName the Classifier class name. * @throws Exception if the class name is invalid. */ public void setClassifierName(String newClassifierName) throws Exception { try { setClassifier((Classifier) Class.forName(newClassifierName).newInstance()); } catch (Exception ex) { throw new Exception("Can't find Classifier with class name: " + newClassifierName); } }
/** * Returns an enumeration describing the available options.. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> newVector = new Vector<Option>(1); newVector.addAll(Collections.list(super.listOptions())); newVector.addElement(new Option( "\tName of a directory to search for cost files when loading\n" + "\tcosts on demand (default current directory).", "D", 1, "-D <directory>")); return newVector.elements(); }
return "<null> classifier"; result.append(toString()); result.append("Classifier model: \n" + m_Classifier.toString() + '\n');
super.setOptions(options);
setClassifier(AbstractClassifier.forName(cName, null)); if (getClassifier() instanceof OptionHandler) { ((OptionHandler) getClassifier()).setOptions(Utils .partitionOptions(options)); updateOptions();
Classifier sec = null; if (m_ExpClassificationRBut.isSelected()) { se = new ClassifierSplitEvaluator(); sec = ((ClassifierSplitEvaluator)se).getClassifier(); } else { se = new RegressionSplitEvaluator();
CrossValidationResultProducer cvrp = new CrossValidationResultProducer(); cvrp.setNumFolds(10); cvrp.setSplitEvaluator(new ClassifierSplitEvaluator()); newExp.setResultProducer(cvrp); newExp.setPropertyArray(new Classifier[0]);
/** * Set the Classifier to use, given it's class name. A new classifier will be * instantiated. * * @param newClassifierName the Classifier class name. * @throws Exception if the class name is invalid. */ public void setClassifierName(String newClassifierName) throws Exception { try { setClassifier((Classifier) Class.forName(newClassifierName).newInstance()); } catch (Exception ex) { throw new Exception("Can't find Classifier with class name: " + newClassifierName); } }
/** * Returns an enumeration describing the available options.. * * @return an enumeration of all the available options. */ @Override public Enumeration<Option> listOptions() { Vector<Option> newVector = new Vector<Option>(1); newVector.addAll(Collections.list(super.listOptions())); newVector.addElement(new Option( "\tName of a directory to search for cost files when loading\n" + "\tcosts on demand (default current directory).", "D", 1, "-D <directory>")); return newVector.elements(); }
return "<null> classifier"; result.append(toString()); result.append("Classifier model: \n" + m_Classifier.toString() + '\n');
super.setOptions(options);
overall_length += NUM_UNWEIGHTED_IR_STATISTICS; if (getAttributeID() >= 0) { overall_length += 1; if (getPredTargetColumn()) { overall_length += 2; if (getAttributeID() >= 0) { resultTypes[current++] = ""; if (getPredTargetColumn()) { resultTypes[current++] = ""; resultTypes[current++] = "";
if (getClassifier() != null) { result.add("-W"); result.add(getClassifier().getClass().getName()); if (getPredTargetColumn()) { result.add("-P"); result.add("" + (m_IRclass + 1)); if (getNoSizeDetermination()) { result.add("-no-size");
CrossValidationResultProducer cvrp = new CrossValidationResultProducer(); cvrp.setNumFolds(10); cvrp.setSplitEvaluator(new ClassifierSplitEvaluator()); newExp.setResultProducer(cvrp); newExp.setPropertyArray(new Classifier[0]);