org.apache.ignite.ml.composition.predictionsaggregator

## Class OnMajorityPredictionsAggregator

- java.lang.Object
- - org.apache.ignite.ml.composition.predictionsaggregator.OnMajorityPredictionsAggregator

- All Implemented Interfaces:
    Serializable, Function<double[],Double>, PredictionsAggregator, IgniteFunction<double[],Double>

      public final class OnMajorityPredictionsAggregator
      extends Object
      implements PredictionsAggregator

  Predictions aggregator returning the most frequently prediction.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OnMajorityPredictionsAggregator()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Double` | `apply(double[] estimations)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.ignite.ml.composition.predictionsaggregator.PredictionsAggregator

      `toString`

    - ### Methods inherited from interface org.apache.ignite.ml.math.functions.IgniteFunction

      `andThen, constant, identity`

    - ### Methods inherited from interface java.util.function.Function

      `andThen, compose`

- - ### Constructor Detail

    - #### OnMajorityPredictionsAggregator

          public OnMajorityPredictionsAggregator()

  - ### Method Detail

    - #### apply

          public Double apply(double[] estimations)

      Specified by:
        `apply` in interface `Function<double[],Double>`

2021 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.11.0
Release Date | : September 11 2021