Module org.elasticsearch.xcore
Class MulticlassConfusionMatrix.Result
java.lang.Object
org.elasticsearch.xpack.core.ml.dataframe.evaluation.classification.MulticlassConfusionMatrix.Result
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentObject,EvaluationMetricResult
- Enclosing class:
MulticlassConfusionMatrix
public static class MulticlassConfusionMatrix.Result
extends Object
implements EvaluationMetricResult
-
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<MulticlassConfusionMatrix.ActualClass> actualClasses, long otherActualClassCount) Result(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfromXContent(XContentParser parser) Returns the name of the metric (which may differ to the writeable name)longinthashCode()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
public Result(List<MulticlassConfusionMatrix.ActualClass> actualClasses, long otherActualClassCount) -
Result
- Throws:
IOException
-
-
Method Details
-
fromXContent
-
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
-
getConfusionMatrix
-
getOtherActualClassCount
public long getOtherActualClassCount() -
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()
-