Class CfnEndpointConfig.ClarifyInferenceConfigProperty.Jsii$Proxy
- All Implemented Interfaces:
CfnEndpointConfig.ClarifyInferenceConfigProperty,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CfnEndpointConfig.ClarifyInferenceConfigProperty
CfnEndpointConfig.ClarifyInferenceConfigProperty-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.ClarifyInferenceConfigProperty
CfnEndpointConfig.ClarifyInferenceConfigProperty.Builder, CfnEndpointConfig.ClarifyInferenceConfigProperty.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor that initializes the object based on literal property values passed by theCfnEndpointConfig.ClarifyInferenceConfigProperty.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal StringA template string used to format a JSON record into an acceptable model container input.The names of the features.final StringProvides the JMESPath expression to extract the features from a model container input in JSON Lines format.A list of data types of the features (optional).final StringA JMESPath expression used to locate the list of label headers in the model container output.For multiclass classification problems, the label headers are the names of the classes.final NumberA zero-based index used to extract a label header or list of label headers from model container output in CSV format.final NumberThe maximum payload size (MB) allowed of a request from the explainer to the model container.final NumberThe maximum number of records in a request that the model container can process when querying the model container for the predictions of a synthetic dataset .final StringA JMESPath expression used to extract the probability (or score) from the model container output if the model container is in JSON Lines format.final NumberA zero-based index used to extract a probability value (score) or list from model container output in CSV format.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCfnEndpointConfig.ClarifyInferenceConfigProperty.Builder.
-
-
Method Details
-
getContentTemplate
Description copied from interface:CfnEndpointConfig.ClarifyInferenceConfigPropertyA template string used to format a JSON record into an acceptable model container input.For example, a
ContentTemplatestring'{"myfeatures":$features}'will format a list of features[1,2,3]into the record string'{"myfeatures":[1,2,3]}'. Required only when the model container input is in JSON Lines format.- Specified by:
getContentTemplatein interfaceCfnEndpointConfig.ClarifyInferenceConfigProperty- See Also:
-
getFeatureHeaders
Description copied from interface:CfnEndpointConfig.ClarifyInferenceConfigPropertyThe names of the features.If provided, these are included in the endpoint response payload to help readability of the
InvokeEndpointoutput. See the Response section under Invoke the endpoint in the Developer Guide for more information.- Specified by:
getFeatureHeadersin interfaceCfnEndpointConfig.ClarifyInferenceConfigProperty- See Also:
-
getFeaturesAttribute
Description copied from interface:CfnEndpointConfig.ClarifyInferenceConfigPropertyProvides the JMESPath expression to extract the features from a model container input in JSON Lines format.For example, if
FeaturesAttributeis the JMESPath expression'myfeatures', it extracts a list of features[1,2,3]from request data'{"myfeatures":[1,2,3]}'.- Specified by:
getFeaturesAttributein interfaceCfnEndpointConfig.ClarifyInferenceConfigProperty- See Also:
-
getFeatureTypes
Description copied from interface:CfnEndpointConfig.ClarifyInferenceConfigPropertyA list of data types of the features (optional).Applicable only to NLP explainability. If provided,
FeatureTypesmust have at least one'text'string (for example,['text']). IfFeatureTypesis not provided, the explainer infers the feature types based on the baseline data. The feature types are included in the endpoint response payload. For additional information see the response section under Invoke the endpoint in the Developer Guide for more information.- Specified by:
getFeatureTypesin interfaceCfnEndpointConfig.ClarifyInferenceConfigProperty- See Also:
-
getLabelAttribute
Description copied from interface:CfnEndpointConfig.ClarifyInferenceConfigPropertyA JMESPath expression used to locate the list of label headers in the model container output.Example : If the model container output of a batch request is
'{"labels":["cat","dog","fish"],"probability":[0.6,0.3,0.1]}', then setLabelAttributeto'labels'to extract the list of label headers["cat","dog","fish"]- Specified by:
getLabelAttributein interfaceCfnEndpointConfig.ClarifyInferenceConfigProperty- See Also:
-
getLabelHeaders
Description copied from interface:CfnEndpointConfig.ClarifyInferenceConfigPropertyFor multiclass classification problems, the label headers are the names of the classes.Otherwise, the label header is the name of the predicted label. These are used to help readability for the output of the
InvokeEndpointAPI. See the response section under Invoke the endpoint in the Developer Guide for more information. If there are no label headers in the model container output, provide them manually using this parameter.- Specified by:
getLabelHeadersin interfaceCfnEndpointConfig.ClarifyInferenceConfigProperty- See Also:
-
getLabelIndex
Description copied from interface:CfnEndpointConfig.ClarifyInferenceConfigPropertyA zero-based index used to extract a label header or list of label headers from model container output in CSV format.Example for a multiclass model: If the model container output consists of label headers followed by probabilities:
'"[\'cat\',\'dog\',\'fish\']","[0.1,0.6,0.3]"', setLabelIndexto0to select the label headers['cat','dog','fish'].- Specified by:
getLabelIndexin interfaceCfnEndpointConfig.ClarifyInferenceConfigProperty- See Also:
-
getMaxPayloadInMb
Description copied from interface:CfnEndpointConfig.ClarifyInferenceConfigPropertyThe maximum payload size (MB) allowed of a request from the explainer to the model container.Defaults to
6MB.- Specified by:
getMaxPayloadInMbin interfaceCfnEndpointConfig.ClarifyInferenceConfigProperty- See Also:
-
getMaxRecordCount
Description copied from interface:CfnEndpointConfig.ClarifyInferenceConfigPropertyThe maximum number of records in a request that the model container can process when querying the model container for the predictions of a synthetic dataset . A record is a unit of input data that inference can be made on, for example, a single line in CSV data. IfMaxRecordCountis1, the model container expects one record per request. A value of 2 or greater means that the model expects batch requests, which can reduce overhead and speed up the inferencing process. If this parameter is not provided, the explainer will tune the record count per request according to the model container's capacity at runtime.- Specified by:
getMaxRecordCountin interfaceCfnEndpointConfig.ClarifyInferenceConfigProperty- See Also:
-
getProbabilityAttribute
Description copied from interface:CfnEndpointConfig.ClarifyInferenceConfigPropertyA JMESPath expression used to extract the probability (or score) from the model container output if the model container is in JSON Lines format.Example : If the model container output of a single request is
'{"predicted_label":1,"probability":0.6}', then setProbabilityAttributeto'probability'.- Specified by:
getProbabilityAttributein interfaceCfnEndpointConfig.ClarifyInferenceConfigProperty- See Also:
-
getProbabilityIndex
Description copied from interface:CfnEndpointConfig.ClarifyInferenceConfigPropertyA zero-based index used to extract a probability value (score) or list from model container output in CSV format.If this value is not provided, the entire model container output will be treated as a probability value (score) or list.
Example for a single class model: If the model container output consists of a string-formatted prediction label followed by its probability:
'1,0.6', setProbabilityIndexto1to select the probability value0.6.Example for a multiclass model: If the model container output consists of a string-formatted prediction label followed by its probability:
'"[\'cat\',\'dog\',\'fish\']","[0.1,0.6,0.3]"', setProbabilityIndexto1to select the probability values[0.1,0.6,0.3].- Specified by:
getProbabilityIndexin interfaceCfnEndpointConfig.ClarifyInferenceConfigProperty- See Also:
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-