public class ClassificationResult<T> extends Object
UNKNOWN_PROBABILITY
will be returned as default.Modifier and Type | Field and Description |
---|---|
static double |
UNKNOWN_PROBABILITY
Determines that no probability is available for this classification result
|
Constructor and Description |
---|
ClassificationResult(T label)
Creates a new classification result with the passed label and an unknown probability
|
ClassificationResult(T label,
double probability)
Creates a new classification result with the passed label and probability
|
Modifier and Type | Method and Description |
---|---|
T |
label()
Returns the label of the classification
|
double |
probability()
Returns the probability of the prediction
|
public static final double UNKNOWN_PROBABILITY
public ClassificationResult(T label)
label
- the label of this classificationpublic ClassificationResult(T label, double probability)
label
- the label of this classificationprobability
- the probability of the prediction. Must be either UNKNOWN_PROBABILITY
or a value ≥ 0 and ≤ 1.public T label()
public double probability()
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.