org.apache.ignite.ml.selection.scoring

## Class LabelPair<L>

- java.lang.Object
- - org.apache.ignite.ml.selection.scoring.LabelPair<L>

- Type Parameters:
    `L` - Type of a label (truth or prediction).

      public class LabelPair<L>
      extends Object

  Pair of truth value and predicated by model.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LabelPair(L truth, L prediction)` Constructs a new instance of truth with prediction.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `L` | `getPrediction()`
    `L` | `getTruth()`

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

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

- - ### Constructor Detail

    - #### LabelPair

          public LabelPair(L truth,
                           L prediction)

      Constructs a new instance of truth with prediction.
      Parameters:
        `truth` - Truth value.
        `prediction` - Predicted value.

  - ### Method Detail

    - #### getTruth

          public L getTruth()

    - #### getPrediction

          public L getPrediction()

2021 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.10.0
Release Date | : March 10 2021