@Override public void setValueViaCLIString(String s) { try { setChosenIndex(Integer.parseInt(s.trim())); } catch (NumberFormatException nfe) { setChosenLabel(s); } }
@Override public void applyState() { this.editedOption.setChosenIndex(getSelectedIndex()); }
@Override public void setValueViaCLIString(String s) { try { setChosenIndex(Integer.parseInt(s.trim())); } catch (NumberFormatException nfe) { setChosenLabel(s); } }
public Iadem3Subtree(Node node, int treeLevel, Iadem3 mainTree, Instance instance) { // subtree configuration from main tree this.numericEstimatorOption.setValueViaCLIString(mainTree.numericEstimatorOption.getValueAsCLIString()); this.gracePeriodOption.setValue(mainTree.gracePeriodOption.getValue()); this.splitCriterionOption.setChosenIndex(mainTree.splitCriterionOption.getChosenIndex()); this.splitConfidenceOption.setValue(mainTree.splitConfidenceOption.getValue()); this.splitTestsOption.setChosenIndex(mainTree.splitTestsOption.getChosenIndex()); this.leafPredictionOption.setChosenIndex(mainTree.leafPredictionOption.getChosenIndex()); this.driftDetectionMethodOption.setValueViaCLIString(mainTree.driftDetectionMethodOption.getValueAsCLIString()); this.attributeDiferentiation.setValue(mainTree.attributeDiferentiation.getValue()); this.maxNestingLevelOption.setValue(mainTree.maxNestingLevelOption.getValue()); this.maxSubtreesPerNodeOption.setValue(mainTree.maxSubtreesPerNodeOption.getValue()); // subtree inicializations this.estimator = mainTree.getEstimatorCopy(); this.errorEstimator = mainTree.getEstimatorCopy(); this.nodo = node; this.mainTree = mainTree; this.mainTree.updateNumberOfLeaves(1); this.mainTree.updateNumberOfNodes(1); createRoot(instance); }