public TargetMean(TargetMeanData td) { this(); this.n = td.n; this.sum = td.sum; this.errorSum = td.errorSum; this.nError = td.nError; this.fadingErrorFactor = td.fadingErrorFactor; this.fadingErrorFactorOption.setValue(td.fadingErrorFactorOptionValue); }
@Override public void resetLearning() { m_n = 1.0; m_sum = 0.0; m_p = 0.0; m_s = 0.0; z_t = 0.0; lambda = this.lambdaOption.getValue(); }
@Override public void setValueViaCLIString(String s) { setValue(cliStringToDouble(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); }
@Override public String getValueAsCLIString() { return doubleToCLIString(this.currentVal); }
public FloatOption(String name, char cliChar, String purpose, double defaultVal, double minVal, double maxVal) { super(name, cliChar, purpose); this.defaultVal = defaultVal; this.minVal = minVal; this.maxVal = maxVal; resetToDefault(); }
public void setValue(double v) { if (v < this.minVal) { throw new IllegalArgumentException("Option " + getName() + " cannot be less than " + this.minVal + ", out of range: " + v); } if (v > this.maxVal) { throw new IllegalArgumentException("Option " + getName() + " cannot be greater than " + this.maxVal + ", out of range: " + v); } this.currentVal = v; }
@Override public void setEditState(String cliString) { this.spinner.setValue(FloatOption.cliStringToDouble(cliString)); } }
public String getParameterString() { StringBuffer sb = new StringBuffer(); sb.append(this.getClass().getSimpleName() + " "); sb.append("-" + horizonOption.getCLIChar() + " "); sb.append(horizonOption.getValueAsCLIString() + " "); sb.append("-" + epsilonOption.getCLIChar() + " "); sb.append(epsilonOption.getValueAsCLIString() + " "); sb.append("-" + betaOption.getCLIChar() + " "); sb.append(betaOption.getValueAsCLIString() + " "); sb.append("-" + muOption.getCLIChar() + " "); sb.append(muOption.getValueAsCLIString() + " "); sb.append("-" + lambdaOption.getCLIChar() + " "); sb.append(lambdaOption.getValueAsCLIString() + " "); sb.append("-" + initPointsOption.getCLIChar() + " "); // NO " " at the end! results in errors on windows systems sb.append(initPointsOption.getValueAsCLIString()); return sb.toString(); }
@Override public String getDefaultCLIString() { return doubleToCLIString(this.defaultVal); }
public FloatOption(String name, char cliChar, String purpose, double defaultVal, double minVal, double maxVal) { super(name, cliChar, purpose); this.defaultVal = defaultVal; this.minVal = minVal; this.maxVal = maxVal; resetToDefault(); }
public void setValue(double v) { if (v < this.minVal) { throw new IllegalArgumentException("Option " + getName() + " cannot be less than " + this.minVal + ", out of range: " + v); } if (v > this.maxVal) { throw new IllegalArgumentException("Option " + getName() + " cannot be greater than " + this.maxVal + ", out of range: " + v); } this.currentVal = v; }
public TargetMean(TargetMeanData td) { this(); this.n = td.n; this.sum = td.sum; this.errorSum = td.errorSum; this.nError = td.nError; this.fadingErrorFactor = td.fadingErrorFactor; this.fadingErrorFactorOption.setValue(td.fadingErrorFactorOptionValue); }
@Override public void setValueViaCLIString(String s) { setValue(cliStringToDouble(s)); }
@Override public String getDefaultCLIString() { return doubleToCLIString(this.defaultVal); }
public TargetMean(TargetMeanData td) { this(); this.n = td.n; this.sum = td.sum; this.errorSum = td.errorSum; this.nError = td.nError; this.fadingErrorFactor = td.fadingErrorFactor; this.fadingErrorFactorOption.setValue(td.fadingErrorFactorOptionValue); }
@Override public String getValueAsCLIString() { return doubleToCLIString(this.currentVal); }