public 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.
|
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()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019