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 ParseField
NAME
static ParseField
NUM_TOP_FEATURE_IMPORTANCE_VALUES
static ParseField
RESULTS_FIELD
-
Constructor Summary
Constructors Constructor Description RegressionConfig()
RegressionConfig(java.lang.String resultsField, java.lang.Integer numTopFeatureImportanceValues)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
static RegressionConfig
fromXContent(XContentParser parser)
java.lang.String
getName()
java.lang.Integer
getNumTopFeatureImportanceValues()
java.lang.String
getResultsField()
int
hashCode()
XContentBuilder
toXContent(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:
getName
in 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:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-