java.lang.Object
org.elasticsearch.xpack.core.ml.dataframe.evaluation.classification.Precision
All Implemented Interfaces:
NamedWriteable, Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject, EvaluationMetric

public class Precision extends Object implements EvaluationMetric
Precision 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