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, wait
andThen, constant, identity
public 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 PredictionsAggregator
pretty
- Use pretty mode.public double[] getWeights()
public double getBias()
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024