@Test public void testToString() { PredictionsAggregator aggr = (PredictionsAggregator)doubles -> null; assertTrue(aggr.toString().length() > 0); assertTrue(aggr.toString(true).length() > 0); assertTrue(aggr.toString(false).length() > 0); WeightedPredictionsAggregator aggregator = new WeightedPredictionsAggregator(new double[] {}); assertTrue(aggregator.toString().length() > 0); assertTrue(aggregator.toString(true).length() > 0); assertTrue(aggregator.toString(false).length() > 0); }
@Override public String toString() { return toString(false); }
WeightedPredictionsAggregator implements PredictionsAggregator { @Override public String toString() { return toString(false); } }
WeightedPredictionsAggregator implements PredictionsAggregator { @Override public String toString() { return toString(false); } WeightedPredictionsAggregator(double[] weights);  WeightedPredictionsAggregator(double[] weights, double bias); }
WeightedPredictionsAggregator implements PredictionsAggregator { @Override public String toString() { return toString(false); } WeightedPredictionsAggregator(double[] weights);  WeightedPredictionsAggregator(double[] weights, double bias); @Override Double apply(double[] answers); @Override String toString(); @Override String toString(boolean pretty); double[] getWeights(); double getBias(); }
WeightedPredictionsAggregator implements PredictionsAggregator { @Override public String toString() { return toString(false); } WeightedPredictionsAggregator(double[] weights);  WeightedPredictionsAggregator(double[] weights, double bias); @Override Double apply(double[] answers); @Override String toString(); @Override String toString(boolean pretty); double[] getWeights(); double getBias();  }