Class RegressionConfig
java.lang.Object
org.elasticsearch.client.ml.inference.trainedmodel.RegressionConfig
- All Implemented Interfaces:
NamedXContentObject,InferenceConfig,ToXContent,ToXContentObject
public class RegressionConfig extends java.lang.Object implements InferenceConfig
-
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 ParseFieldNAMEstatic ParseFieldNUM_TOP_FEATURE_IMPORTANCE_VALUESstatic ParseFieldRESULTS_FIELD -
Constructor Summary
Constructors Constructor Description RegressionConfig()RegressionConfig(java.lang.String resultsField, java.lang.Integer numTopFeatureImportanceValues) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)static RegressionConfigfromXContent(XContentParser parser)java.lang.StringgetName()java.lang.IntegergetNumTopFeatureImportanceValues()java.lang.StringgetResultsField()inthashCode()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)
-
Field Details
-
Constructor Details
-
RegressionConfig
public RegressionConfig() -
RegressionConfig
public RegressionConfig(java.lang.String resultsField, java.lang.Integer numTopFeatureImportanceValues)
-
-
Method Details
-
fromXContent
-
getNumTopFeatureImportanceValues
public java.lang.Integer getNumTopFeatureImportanceValues() -
getResultsField
public java.lang.String getResultsField() -
getName
public java.lang.String getName()- Specified by:
getNamein interfaceNamedXContentObject- Returns:
- The name of the XContentObject that is to be serialized
-
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
-