ConstraintViolations: ConstraintViolations

ConstraintViolationsR Documentation

ConstraintViolations

Description

Represents the constraint violations JSON file used in Amazon SageMaker Model Monitoring.

Super class

sagemaker.mlcore::ModelMonitoringFile -> ConstraintViolations

Methods

Public methods

Inherited methods

Method new()

Initializes the ConstraintViolations object used in Amazon SageMaker Model Monitoring.

Usage
ConstraintViolations$new(
  body_dict = NULL,
  constraint_violations_file_s3_uri = NULL,
  kms_key = NULL,
  sagemaker_session = NULL
)
Arguments
body_dict

(str): The body of the constraint violations JSON file.

constraint_violations_file_s3_uri

(str): The uri of the constraint violations JSON file.

kms_key

(str): The kms key to be used to decrypt the file in S3.

sagemaker_session

(sagemaker.session.Session): A SageMaker Session object, used for SageMaker interactions (default: None). If not specified, one is created using the default AWS configuration chain.


Method from_s3_uri()

Generates a ConstraintViolations object from an s3 uri.

Usage
ConstraintViolations$from_s3_uri(
  constraint_violations_file_s3_uri,
  kms_key = NULL,
  sagemaker_session = NULL
)
Arguments
constraint_violations_file_s3_uri

(str): The uri of the constraint violations JSON file.

kms_key

(str): The kms key to be used to decrypt the file in S3.

sagemaker_session

(sagemaker.session.Session): A SageMaker Session object, used for SageMaker interactions (default: None). If not specified, one is created using the default AWS configuration chain.

Returns

sagemaker.model_monitor.ConstraintViolations: The instance of ConstraintViolations generated from the s3 uri.


Method from_string()

Generates a ConstraintViolations object from an s3 uri.

Usage
ConstraintViolations$from_string(
  constraint_violations_file_string,
  kms_key = NULL,
  file_name = NULL,
  sagemaker_session = NULL
)
Arguments
constraint_violations_file_string

(str): The uri of the constraint violations JSON file.

kms_key

(str): The kms key to be used to encrypt the file in S3.

file_name

(str): The file name to use when uploading to S3.

sagemaker_session

(sagemaker.session.Session): A SageMaker Session object, used for SageMaker interactions (default: None). If not specified, one is created using the default AWS configuration chain.

Returns

sagemaker.model_monitor.ConstraintViolations: The instance of ConstraintViolations generated from the s3 uri.


Method from_file_path()

Initializes a ConstraintViolations object from a file path.

Usage
ConstraintViolations$from_file_path(
  constraint_violations_file_path,
  kms_key = NULL,
  sagemaker_session = NULL
)
Arguments
constraint_violations_file_path

(str): The path to the constraint violations file.

kms_key

(str): The kms_key to use when encrypting the file in S3.

sagemaker_session

(sagemaker.session.Session): A SageMaker Session object, used for SageMaker interactions (default: None). If not specified, one is created using the default AWS configuration chain.

Returns

sagemaker.model_monitor.ConstraintViolations: The instance of ConstraintViolations generated from the local file path.


Method clone()

The objects of this class are cloneable with this method.

Usage
ConstraintViolations$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


DyfanJones/sagemaker-r-mlcore documentation built on May 3, 2022, 10:08 a.m.