/** * Creates a string representation of these parameters in which only those parameters that * differ from their default values are mentioned. **/ public String nonDefaultString() { String result = super.nonDefaultString(); if (learningRate != LinearThresholdUnit.defaultLearningRate) result += ", learningRate = " + learningRate; if (initialWeight != LinearThresholdUnit.defaultInitialWeight) result += ", initialWeight = " + initialWeight; if (threshold != LinearThresholdUnit.defaultThreshold) result += ", threshold = " + threshold; if (thickness != LinearThresholdUnit.defaultThickness) result += ", thickness = " + thickness; if (positiveThickness != 0) result += ", positiveThickness = " + positiveThickness; if (negativeThickness != 0) result += ", negativeThickness = " + negativeThickness; if (featurePruningThreshold != LinearThresholdUnit.defaultFeaturePruningThreshold) result += ", featurePruningThreshold = " + featurePruningThreshold; if (result.startsWith(", ")) result = result.substring(2); return result; } }
parameterStrings[i] = parameters[i].nonDefaultString();
parameterStrings[i] = parameters[i].nonDefaultString();
/** * Creates a string representation of these parameters in which only those parameters that * differ from their default values are mentioned. **/ public String nonDefaultString() { String result = super.nonDefaultString(); if (!solverType.equals(SupportVectorMachine.defaultSolverType)) result += ", solverType = \"" + solverType + "\""; if (C != SupportVectorMachine.defaultC) result += ", C = " + C; if (epsilon != SupportVectorMachine.defaultEpsilon) result += ", epsilon = " + epsilon; if (bias != SupportVectorMachine.defaultBias) result += ", bias = " + bias; if (featurePruningThreshold != defaultFeaturePruningThreshold) result += ", feature pruning threshold = " + featurePruningThreshold; if (result.startsWith(", ")) result = result.substring(2); return result; } }
/** * Creates a string representation of these parameters in which only those parameters that * differ from their default values are mentioned. **/ public String nonDefaultString() { String result = super.nonDefaultString(); String name = baseLearner.getClass().getName(); name = name.substring(name.lastIndexOf('.') + 1); if (!defaultPrediction.equals(MuxLearner.defaultDefaultPrediction)) result += "defaultPrediction = " + defaultPrediction + ", "; result += name + ": " + baseLearner.getParameters().nonDefaultString(); return result; } }
/** * Creates a string representation of these parameters in which only those parameters that * differ from their default values are mentioned. **/ public String nonDefaultString() { String result = super.nonDefaultString(); if (learningRate != StochasticGradientDescent.defaultLearningRate) result += ", learningRate = " + learningRate; if (result.startsWith(", ")) result = result.substring(2); return result; } }
/** * Creates a string representation of these parameters in which only those parameters that * differ from their default values are mentioned. **/ public String nonDefaultString() { String result = super.nonDefaultString(); if (rounds != AdaBoost.defaultRounds) result += ", rounds = " + rounds; if (result.startsWith(", ")) result = result.substring(2); return result; } }
/** * Creates a string representation of these parameters in which only those parameters that * differ from their default values are mentioned. **/ public String nonDefaultString() { String result = super.nonDefaultString(); if (smoothing != NaiveBayes.defaultSmoothing) result += ", smoothing = " + smoothing; if (result.startsWith(", ")) result = result.substring(2); return result; } }
/** Retrieves the parameters that are set in this learner. */ public Parameters getParameters() { return new Parameters(); }
/** * Creates a string representation of these parameters in which only those parameters that * differ from their default values are mentioned. **/ public String nonDefaultString() { String result = super.nonDefaultString(); if (!attributeString.equals(WekaWrapper.defaultAttributeString)) result += ", attributeString = \"" + attributeString + "\""; if (result.startsWith(", ")) result = result.substring(2); return result; } }
/** * Creates a string representation of these parameters in which only those parameters that * differ from their default values are mentioned. **/ public String nonDefaultString() { String name = baseLTU.getClass().getName(); name = name.substring(name.lastIndexOf('.') + 1); return name + ": " + baseLTU.getParameters().nonDefaultString(); } }
/** * Sets the values of parameters that control the behavior of this learning algorithm. * * @param p The parameters. **/ public void setParameters(Parameters p) { p.setParameters(this); }