Module org.elasticsearch.xcore
Class RegressionConfig
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.RegressionConfig
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,ToXContent,ToXContentObject,InferenceConfig,LenientlyParsedInferenceConfig,StrictlyParsedInferenceConfig,NamedXContentObject
- Direct Known Subclasses:
LearningToRankConfig
public class RegressionConfig
extends Object
implements LenientlyParsedInferenceConfig, StrictlyParsedInferenceConfig
-
Nested Class Summary
Nested ClassesNested 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 RegressionConfigstatic final ParseFieldstatic final ParseFieldFields inherited from interface org.elasticsearch.xpack.core.ml.inference.trainedmodel.InferenceConfig
DEFAULT_RESULTS_FIELD, DEFAULT_TOP_CLASSES_RESULTS_FIELD, RESULTS_FIELDFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionRegressionConfig(String resultsField) RegressionConfig(String resultsField, Integer numTopFeatureImportanceValues) -
Method Summary
Modifier and TypeMethodDescriptionapply(InferenceConfigUpdate update) Return a copy of this with the settings updated by the values inupdate.static RegressionConfig.Builderbuilder()booleanstatic RegressionConfigfromXContentLenient(XContentParser parser) static RegressionConfigfromXContentStrict(XContentParser parser) All nodes in the cluster must have at least this MlConfigVersion attributeAll communication in the cluster must use at least this versiongetName()intinthashCode()booleanbooleanisTargetTypeSupported(TargetType targetType) booleantoXContent(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.inference.trainedmodel.InferenceConfig
getDefaultInput, getMinimalSupportedVersion, getMinLicenseSupported, getMinLicenseSupportedForAction, incompatibleUpdateException, supportsIngestPipeline, supportsPipelineAggregation, supportsSearchRescorer, validateTrainedModelInputMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
NAME
-
NUM_TOP_FEATURE_IMPORTANCE_VALUES
-
EMPTY_PARAMS
-
-
Constructor Details
-
RegressionConfig
-
RegressionConfig
-
RegressionConfig
- Throws:
IOException
-
-
Method Details
-
fromXContentStrict
-
fromXContentLenient
-
getNumTopFeatureImportanceValues
public int getNumTopFeatureImportanceValues() -
getResultsField
- Specified by:
getResultsFieldin interfaceInferenceConfig
-
requestingImportance
public boolean requestingImportance()- Specified by:
requestingImportancein interfaceInferenceConfig
-
isAllocateOnly
public boolean isAllocateOnly()- Specified by:
isAllocateOnlyin interfaceInferenceConfig
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable- Specified by:
getWriteableNamein interfaceVersionedNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
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 IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
isTargetTypeSupported
- Specified by:
isTargetTypeSupportedin interfaceInferenceConfig
-
apply
Description copied from interface:InferenceConfigReturn a copy of this with the settings updated by the values inupdate.- Specified by:
applyin interfaceInferenceConfig- Parameters:
update- The update to apply- Returns:
- A new updated config
-
getMinimalSupportedMlConfigVersion
Description copied from interface:InferenceConfigAll nodes in the cluster must have at least this MlConfigVersion attribute- Specified by:
getMinimalSupportedMlConfigVersionin interfaceInferenceConfig
-
getMinimalSupportedTransportVersion
Description copied from interface:InferenceConfigAll communication in the cluster must use at least this version- Specified by:
getMinimalSupportedTransportVersionin interfaceInferenceConfig
-
builder
-