Module org.elasticsearch.xcore
Class Precision.Result
java.lang.Object
org.elasticsearch.xpack.core.ml.dataframe.evaluation.classification.Precision.Result
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentObject,EvaluationMetricResult
- Enclosing class:
Precision
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionResult(List<PerClassSingleValue> classes, double avgPrecision) Result(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbooleandoubleReturns the name of the metric (which may differ to the writeable name)inthashCode()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
Result
-
Result
- Throws:
IOException
-
-
Method Details
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
getMetricName
Description copied from interface:EvaluationMetricResultReturns the name of the metric (which may differ to the writeable name)- Specified by:
getMetricNamein interfaceEvaluationMetricResult
-
getClasses
-
getAvgPrecision
public double getAvgPrecision() -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-