Class Regression
java.lang.Object
org.elasticsearch.client.ml.dataframe.evaluation.regression.Regression
- All Implemented Interfaces:
Evaluation,ToXContent,ToXContentObject
public class Regression extends java.lang.Object implements Evaluation
Evaluation of regression results.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMEstatic ConstructingObjectParser<Regression,java.lang.Void>PARSER -
Constructor Summary
Constructors Constructor Description Regression(java.lang.String actualField, java.lang.String predictedField)Regression(java.lang.String actualField, java.lang.String predictedField, java.util.List<EvaluationMetric> metrics)Regression(java.lang.String actualField, java.lang.String predictedField, EvaluationMetric... metrics) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)static RegressionfromXContent(XContentParser parser)java.lang.StringgetName()Returns the evaluation nameinthashCode()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)
-
Field Details
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
PARSER
-
-
Constructor Details
-
Regression
public Regression(java.lang.String actualField, java.lang.String predictedField) -
Regression
public Regression(java.lang.String actualField, java.lang.String predictedField, EvaluationMetric... metrics) -
Regression
public Regression(java.lang.String actualField, java.lang.String predictedField, @Nullable java.util.List<EvaluationMetric> metrics)
-
-
Method Details
-
fromXContent
-
getName
public java.lang.String getName()Description copied from interface:EvaluationReturns the evaluation name- Specified by:
getNamein interfaceEvaluation
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-