Module org.elasticsearch.xcore
Class Classification
java.lang.Object
org.elasticsearch.xpack.core.ml.dataframe.evaluation.classification.Classification
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentObject,Evaluation
Evaluation of classification results.
-
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 ConstructingObjectParser<Classification, Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionClassification(String actualField, String predictedField, String topClassesField, List<EvaluationMetric> metrics) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ClassificationfromXContent(XContentParser parser) Returns the collection of fields required by evaluationReturns the list of metrics to evaluategetName()Returns the evaluation nameinthashCode()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.xpack.core.ml.dataframe.evaluation.Evaluation
buildSearch, getResults, hasAllResults, initMetrics, processMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
-
PARSER
-
-
Constructor Details
-
Classification
-
Classification
- Throws:
IOException
-
-
Method Details
-
fromXContent
-
getName
Description copied from interface:EvaluationReturns the evaluation name- Specified by:
getNamein interfaceEvaluation
-
getFields
Description copied from interface:EvaluationReturns the collection of fields required by evaluation- Specified by:
getFieldsin interfaceEvaluation
-
getMetrics
Description copied from interface:EvaluationReturns the list of metrics to evaluate- Specified by:
getMetricsin interfaceEvaluation- Returns:
- list of metrics to evaluate
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
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()
-