Module org.elasticsearch.xcore
Class RegressionConfigUpdate
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.RegressionConfigUpdate
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject,InferenceConfigUpdate,NamedXContentObject
public class RegressionConfigUpdate
extends Object
implements InferenceConfigUpdate, NamedXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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 RegressionConfigUpdatestatic final org.elasticsearch.xcontent.ParseFieldFields inherited from interface org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceConfigUpdate
RESERVED_ML_FIELD_NAMESFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionRegressionConfigUpdate(String resultsField, Integer numTopFeatureImportanceValues) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RegressionConfigUpdatefromConfig(RegressionConfig config) static RegressionConfigUpdatestatic RegressionConfigUpdatefromXContentStrict(org.elasticsearch.xcontent.XContentParser parser) getName()inthashCode()booleanisSupported(InferenceConfig inferenceConfig) InferenceConfigUpdate.Builder<? extends InferenceConfigUpdate.Builder<?, ?>, ? extends InferenceConfigUpdate> org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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.inference.trainedmodel.InferenceConfigUpdate
isEmptyMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME
public static final org.elasticsearch.xcontent.ParseField NAME -
EMPTY_PARAMS
-
-
Constructor Details
-
RegressionConfigUpdate
-
RegressionConfigUpdate
- Throws:
IOException
-
-
Method Details
-
fromMap
-
fromConfig
-
fromXContentStrict
public static RegressionConfigUpdate fromXContentStrict(org.elasticsearch.xcontent.XContentParser parser) -
getNumTopFeatureImportanceValues
-
getResultsField
- Specified by:
getResultsFieldin interfaceInferenceConfigUpdate
-
newBuilder
public InferenceConfigUpdate.Builder<? extends InferenceConfigUpdate.Builder<?,?>, newBuilder()? extends InferenceConfigUpdate> - Specified by:
newBuilderin interfaceInferenceConfigUpdate
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getName
- Specified by:
getNamein interfaceInferenceConfigUpdate- Specified by:
getNamein interfaceNamedXContentObject- Returns:
- The name of the XContentObject that is to be serialized
-
getMinimalSupportedVersion
- Specified by:
getMinimalSupportedVersionin interfaceVersionedNamedWriteable
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
isSupported
- Specified by:
isSupportedin interfaceInferenceConfigUpdate
-