org.apache.ignite.ml.selection.scoring.metric.classification

## Class Precision<L extends Serializable>

- java.lang.Object
- - org.apache.ignite.ml.selection.scoring.metric.classification.BinaryClassificationMetric<L>
  - - org.apache.ignite.ml.selection.scoring.metric.classification.Precision<L>

- All Implemented Interfaces:
    Serializable, Metric<L,BinaryClassificationEvaluationContext<L>,BinaryClassificationPointwiseMetricStatsAggregator<L>>

      public class Precision<L extends Serializable>
      extends BinaryClassificationMetric<L>

  Precision metric class for binary classification.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Precision()` Creates an instance Precision class.
    `Precision(L truthLabel, L falseLabel)` Creates an instance Precision class.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Precision<L>` | `initBy(BinaryClassificationPointwiseMetricStatsAggregator<L> aggr)` Initializes metric value by statistics aggregator.
    `MetricName` | `name()` Returns metric name.
    `double` | `value()` Returns metric value.

    - ### Methods inherited from class org.apache.ignite.ml.selection.scoring.metric.classification.BinaryClassificationMetric

      `makeAggregator`

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

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

- - ### Constructor Detail

    - #### Precision

          public Precision(L truthLabel,
                           L falseLabel)

      Creates an instance Precision class.
      Parameters:
        `truthLabel` - Truth label.
        `falseLabel` - False label.

    - #### Precision

          public Precision()

      Creates an instance Precision class.

  - ### Method Detail

    - #### initBy

          public Precision<L> initBy(BinaryClassificationPointwiseMetricStatsAggregator<L> aggr)

      Initializes metric value by statistics aggregator.
      Parameters:
        `aggr` - Aggregator.

    - #### value

          public double value()

      Returns metric value.
      Returns:
        Metric value.

    - #### name

          public MetricName name()

      Returns metric name.
      Returns:
        Metric name.

2020 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.9.0
Release Date | : October 15 2020