ModelPackage | R Documentation |
A SageMaker “Model“ that can be deployed to an “Endpoint“.
sagemaker.mlcore::ModelBase
-> sagemaker.mlcore::Model
-> ModelPackage
new()
Initialize a SageMaker ModelPackage.
ModelPackage$new( role, model_data = NULL, algorithm_arn = NULL, model_package_arn = NULL, ... )
role
(str): An AWS IAM role (either name or full ARN). The Amazon SageMaker training jobs and APIs that create Amazon SageMaker endpoints use this role to access training data and model artifacts. After the endpoint is created, the inference code might use the IAM role, if it needs to access an AWS resource.
model_data
(str): The S3 location of a SageMaker model data “.tar.gz“ file. Must be provided if algorithm_arn is provided.
algorithm_arn
(str): algorithm arn used to train the model, can be just the name if your account owns the algorithm. Must also provide “model_data“.
model_package_arn
(str): An existing SageMaker Model Package arn, can be just the name if your account owns the Model Package. “model_data“ is not required.
...
: Additional kwargs passed to the Model constructor.
enable_network_isolation()
Whether to enable network isolation when creating a model out of this ModelPackage
ModelPackage$enable_network_isolation()
bool: If network isolation should be enabled or not.
.create_sagemaker_model()
Create a SageMaker Model Entity
ModelPackage$.create_sagemaker_model(...)
...
: Positional arguments coming from the caller. This class does not require any so they are ignored.
clone()
The objects of this class are cloneable with this method.
ModelPackage$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.