Module org.elasticsearch.xcore
Class TopClassEntry
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.results.TopClassEntry
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
-
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
FieldsModifier and TypeFieldDescriptionstatic final ParseFieldstatic final ParseFieldstatic final ParseFieldstatic final StringFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionTopClassEntry(Object classification, double score) TopClassEntry(Object classification, double probability, double score) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TopClassEntryfromXContent(XContentParser parser) doubledoublegetScore()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
-
Field Details
-
CLASS_NAME
-
CLASS_PROBABILITY
-
CLASS_SCORE
-
NAME
- See Also:
-
-
Constructor Details
-
TopClassEntry
-
TopClassEntry
-
TopClassEntry
- Throws:
IOException
-
-
Method Details
-
fromXContent
- Throws:
IOException
-
getClassification
-
getProbability
public double getProbability() -
getScore
public double getScore() -
asValueMap
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-