Module org.elasticsearch.xcore
Class Regression
java.lang.Object
org.elasticsearch.xpack.core.ml.dataframe.evaluation.regression.Regression
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentObject,Evaluation
Evaluation of regression 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<Regression, Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionRegression(String actualField, String predictedField, List<EvaluationMetric> metrics) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RegressionfromXContent(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
-
Regression
public Regression(String actualField, String predictedField, @Nullable List<EvaluationMetric> metrics) -
Regression
- 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()
-