#[non_exhaustive]pub struct ClarifyShapBaselineConfigBuilder { /* private fields */ }
Expand description
A builder for ClarifyShapBaselineConfig
.
Implementations§
source§impl ClarifyShapBaselineConfigBuilder
impl ClarifyShapBaselineConfigBuilder
sourcepub fn mime_type(self, input: impl Into<String>) -> Self
pub fn mime_type(self, input: impl Into<String>) -> Self
The MIME type of the baseline data. Choose from 'text/csv'
or 'application/jsonlines'
. Defaults to 'text/csv'
.
sourcepub fn set_mime_type(self, input: Option<String>) -> Self
pub fn set_mime_type(self, input: Option<String>) -> Self
The MIME type of the baseline data. Choose from 'text/csv'
or 'application/jsonlines'
. Defaults to 'text/csv'
.
sourcepub fn get_mime_type(&self) -> &Option<String>
pub fn get_mime_type(&self) -> &Option<String>
The MIME type of the baseline data. Choose from 'text/csv'
or 'application/jsonlines'
. Defaults to 'text/csv'
.
sourcepub fn shap_baseline(self, input: impl Into<String>) -> Self
pub fn shap_baseline(self, input: impl Into<String>) -> Self
The inline SHAP baseline data in string format. ShapBaseline
can have one or multiple records to be used as the baseline dataset. The format of the SHAP baseline file should be the same format as the training dataset. For example, if the training dataset is in CSV format and each record contains four features, and all features are numerical, then the format of the baseline data should also share these characteristics. For natural language processing (NLP) of text columns, the baseline value should be the value used to replace the unit of text specified by the Granularity
of the TextConfig
parameter. The size limit for ShapBasline
is 4 KB. Use the ShapBaselineUri
parameter if you want to provide more than 4 KB of baseline data.
sourcepub fn set_shap_baseline(self, input: Option<String>) -> Self
pub fn set_shap_baseline(self, input: Option<String>) -> Self
The inline SHAP baseline data in string format. ShapBaseline
can have one or multiple records to be used as the baseline dataset. The format of the SHAP baseline file should be the same format as the training dataset. For example, if the training dataset is in CSV format and each record contains four features, and all features are numerical, then the format of the baseline data should also share these characteristics. For natural language processing (NLP) of text columns, the baseline value should be the value used to replace the unit of text specified by the Granularity
of the TextConfig
parameter. The size limit for ShapBasline
is 4 KB. Use the ShapBaselineUri
parameter if you want to provide more than 4 KB of baseline data.
sourcepub fn get_shap_baseline(&self) -> &Option<String>
pub fn get_shap_baseline(&self) -> &Option<String>
The inline SHAP baseline data in string format. ShapBaseline
can have one or multiple records to be used as the baseline dataset. The format of the SHAP baseline file should be the same format as the training dataset. For example, if the training dataset is in CSV format and each record contains four features, and all features are numerical, then the format of the baseline data should also share these characteristics. For natural language processing (NLP) of text columns, the baseline value should be the value used to replace the unit of text specified by the Granularity
of the TextConfig
parameter. The size limit for ShapBasline
is 4 KB. Use the ShapBaselineUri
parameter if you want to provide more than 4 KB of baseline data.
sourcepub fn shap_baseline_uri(self, input: impl Into<String>) -> Self
pub fn shap_baseline_uri(self, input: impl Into<String>) -> Self
The uniform resource identifier (URI) of the S3 bucket where the SHAP baseline file is stored. The format of the SHAP baseline file should be the same format as the format of the training dataset. For example, if the training dataset is in CSV format, and each record in the training dataset has four features, and all features are numerical, then the baseline file should also have this same format. Each record should contain only the features. If you are using a virtual private cloud (VPC), the ShapBaselineUri
should be accessible to the VPC. For more information about setting up endpoints with Amazon Virtual Private Cloud, see Give SageMaker access to Resources in your Amazon Virtual Private Cloud.
sourcepub fn set_shap_baseline_uri(self, input: Option<String>) -> Self
pub fn set_shap_baseline_uri(self, input: Option<String>) -> Self
The uniform resource identifier (URI) of the S3 bucket where the SHAP baseline file is stored. The format of the SHAP baseline file should be the same format as the format of the training dataset. For example, if the training dataset is in CSV format, and each record in the training dataset has four features, and all features are numerical, then the baseline file should also have this same format. Each record should contain only the features. If you are using a virtual private cloud (VPC), the ShapBaselineUri
should be accessible to the VPC. For more information about setting up endpoints with Amazon Virtual Private Cloud, see Give SageMaker access to Resources in your Amazon Virtual Private Cloud.
sourcepub fn get_shap_baseline_uri(&self) -> &Option<String>
pub fn get_shap_baseline_uri(&self) -> &Option<String>
The uniform resource identifier (URI) of the S3 bucket where the SHAP baseline file is stored. The format of the SHAP baseline file should be the same format as the format of the training dataset. For example, if the training dataset is in CSV format, and each record in the training dataset has four features, and all features are numerical, then the baseline file should also have this same format. Each record should contain only the features. If you are using a virtual private cloud (VPC), the ShapBaselineUri
should be accessible to the VPC. For more information about setting up endpoints with Amazon Virtual Private Cloud, see Give SageMaker access to Resources in your Amazon Virtual Private Cloud.
sourcepub fn build(self) -> ClarifyShapBaselineConfig
pub fn build(self) -> ClarifyShapBaselineConfig
Consumes the builder and constructs a ClarifyShapBaselineConfig
.
Trait Implementations§
source§impl Clone for ClarifyShapBaselineConfigBuilder
impl Clone for ClarifyShapBaselineConfigBuilder
source§fn clone(&self) -> ClarifyShapBaselineConfigBuilder
fn clone(&self) -> ClarifyShapBaselineConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ClarifyShapBaselineConfigBuilder
impl Default for ClarifyShapBaselineConfigBuilder
source§fn default() -> ClarifyShapBaselineConfigBuilder
fn default() -> ClarifyShapBaselineConfigBuilder
source§impl PartialEq for ClarifyShapBaselineConfigBuilder
impl PartialEq for ClarifyShapBaselineConfigBuilder
source§fn eq(&self, other: &ClarifyShapBaselineConfigBuilder) -> bool
fn eq(&self, other: &ClarifyShapBaselineConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.