public final class WeightedPredictionsAggregator extends Object implements PredictionsAggregator
| Constructor and Description |
|---|
WeightedPredictionsAggregator(double[] weights)
Constructs WeightedPredictionsAggregator instance.
|
WeightedPredictionsAggregator(double[] weights,
double bias)
Constructs WeightedPredictionsAggregator instance.
|
| Modifier and Type | Method and Description |
|---|---|
Double |
apply(double[] answers) |
double |
getBias() |
double[] |
getWeights() |
String |
toString() |
String |
toString(boolean pretty)
Represents aggregator as String.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitandThen, constant, identitypublic WeightedPredictionsAggregator(double[] weights)
weights - Weights.public WeightedPredictionsAggregator(double[] weights,
double bias)
weights - Weights.bias - Bias.public Double apply(double[] answers)
public String toString(boolean pretty)
toString in interface PredictionsAggregatorpretty - Use pretty mode.public double[] getWeights()
public double getBias()
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025