java.lang.Object
org.elasticsearch.client.ml.dataframe.evaluation.classification.PrecisionMetric
All Implemented Interfaces:
EvaluationMetric, ToXContent, ToXContentObject

public class PrecisionMetric
extends java.lang.Object
implements EvaluationMetric
PrecisionMetric is a metric that answers the question: "What fraction of documents classified as X actually belongs to X?" for any given class X equation: precision(X) = TP(X) / (TP(X) + FP(X)) where: TP(X) - number of true positives wrt X FP(X) - number of false positives wrt X