Class RecallMetric
java.lang.Object
org.elasticsearch.client.ml.dataframe.evaluation.classification.RecallMetric
- All Implemented Interfaces:
EvaluationMetric,ToXContent,ToXContentObject
public class RecallMetric extends java.lang.Object implements EvaluationMetric
RecallMetric is a metric that answers the question:
"What fraction of documents belonging to X have been predicted as X by the classifier?"
for any given class X
equation: recall(X) = TP(X) / (TP(X) + FN(X))
where: TP(X) - number of true positives wrt X
FN(X) - number of false negatives wrt X-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRecallMetric.PerClassResultstatic classRecallMetric.ResultNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME -
Constructor Summary
Constructors Constructor Description RecallMetric() -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)static RecallMetricfromXContent(XContentParser parser)java.lang.StringgetName()Returns the name of the metricinthashCode()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)
-
Field Details
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
RecallMetric
public RecallMetric()
-
-
Method Details
-
fromXContent
-
getName
public java.lang.String getName()Description copied from interface:EvaluationMetricReturns the name of the metric- Specified by:
getNamein interfaceEvaluationMetric
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-