partition
stringclasses
3 values
func_name
stringlengths
1
134
docstring
stringlengths
1
46.9k
path
stringlengths
4
223
original_string
stringlengths
75
104k
code
stringlengths
75
104k
docstring_tokens
listlengths
1
1.97k
repo
stringlengths
7
55
language
stringclasses
1 value
url
stringlengths
87
315
code_tokens
listlengths
19
28.4k
sha
stringlengths
40
40
train
TensorFlow.create_model
Create a SageMaker ``TensorFlowModel`` object that can be deployed to an ``Endpoint``. Args: role (str): The ``ExecutionRoleArn`` IAM Role ARN for the ``Model``, which is also used during transform jobs. If not specified, the role from the Estimator will be used. model_s...
src/sagemaker/tensorflow/estimator.py
def create_model(self, model_server_workers=None, role=None, vpc_config_override=VPC_CONFIG_DEFAULT, endpoint_type=None): """Create a SageMaker ``TensorFlowModel`` object that can be deployed to an ``Endpoint``. Args: role (str): The ``ExecutionRoleArn`` IAM Role ARN fo...
def create_model(self, model_server_workers=None, role=None, vpc_config_override=VPC_CONFIG_DEFAULT, endpoint_type=None): """Create a SageMaker ``TensorFlowModel`` object that can be deployed to an ``Endpoint``. Args: role (str): The ``ExecutionRoleArn`` IAM Role ARN fo...
[ "Create", "a", "SageMaker", "TensorFlowModel", "object", "that", "can", "be", "deployed", "to", "an", "Endpoint", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tensorflow/estimator.py#L387-L415
[ "def", "create_model", "(", "self", ",", "model_server_workers", "=", "None", ",", "role", "=", "None", ",", "vpc_config_override", "=", "VPC_CONFIG_DEFAULT", ",", "endpoint_type", "=", "None", ")", ":", "role", "=", "role", "or", "self", ".", "role", "if", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
TensorFlow.hyperparameters
Return hyperparameters used by your custom TensorFlow code during model training.
src/sagemaker/tensorflow/estimator.py
def hyperparameters(self): """Return hyperparameters used by your custom TensorFlow code during model training.""" hyperparameters = super(TensorFlow, self).hyperparameters() self.checkpoint_path = self.checkpoint_path or self._default_s3_path('checkpoints') mpi_enabled = False ...
def hyperparameters(self): """Return hyperparameters used by your custom TensorFlow code during model training.""" hyperparameters = super(TensorFlow, self).hyperparameters() self.checkpoint_path = self.checkpoint_path or self._default_s3_path('checkpoints') mpi_enabled = False ...
[ "Return", "hyperparameters", "used", "by", "your", "custom", "TensorFlow", "code", "during", "model", "training", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tensorflow/estimator.py#L442-L472
[ "def", "hyperparameters", "(", "self", ")", ":", "hyperparameters", "=", "super", "(", "TensorFlow", ",", "self", ")", ".", "hyperparameters", "(", ")", "self", ".", "checkpoint_path", "=", "self", ".", "checkpoint_path", "or", "self", ".", "_default_s3_path",...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
from_dict
Extracts subnets and security group ids as lists from a VpcConfig dict Args: vpc_config (dict): a VpcConfig dict containing 'Subnets' and 'SecurityGroupIds' do_sanitize (bool): whether to sanitize the VpcConfig dict before extracting values Returns: Tuple of lists as (subnets, security...
src/sagemaker/vpc_utils.py
def from_dict(vpc_config, do_sanitize=False): """ Extracts subnets and security group ids as lists from a VpcConfig dict Args: vpc_config (dict): a VpcConfig dict containing 'Subnets' and 'SecurityGroupIds' do_sanitize (bool): whether to sanitize the VpcConfig dict before extracting values ...
def from_dict(vpc_config, do_sanitize=False): """ Extracts subnets and security group ids as lists from a VpcConfig dict Args: vpc_config (dict): a VpcConfig dict containing 'Subnets' and 'SecurityGroupIds' do_sanitize (bool): whether to sanitize the VpcConfig dict before extracting values ...
[ "Extracts", "subnets", "and", "security", "group", "ids", "as", "lists", "from", "a", "VpcConfig", "dict" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/vpc_utils.py#L44-L64
[ "def", "from_dict", "(", "vpc_config", ",", "do_sanitize", "=", "False", ")", ":", "if", "do_sanitize", ":", "vpc_config", "=", "sanitize", "(", "vpc_config", ")", "if", "vpc_config", "is", "None", ":", "return", "None", ",", "None", "return", "vpc_config", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
sanitize
Checks that an instance of VpcConfig has the expected keys and values, removes unexpected keys, and raises ValueErrors if any expectations are violated Args: vpc_config (dict): a VpcConfig dict containing 'Subnets' and 'SecurityGroupIds' Returns: A valid VpcConfig dict containing only 'Sub...
src/sagemaker/vpc_utils.py
def sanitize(vpc_config): """ Checks that an instance of VpcConfig has the expected keys and values, removes unexpected keys, and raises ValueErrors if any expectations are violated Args: vpc_config (dict): a VpcConfig dict containing 'Subnets' and 'SecurityGroupIds' Returns: A val...
def sanitize(vpc_config): """ Checks that an instance of VpcConfig has the expected keys and values, removes unexpected keys, and raises ValueErrors if any expectations are violated Args: vpc_config (dict): a VpcConfig dict containing 'Subnets' and 'SecurityGroupIds' Returns: A val...
[ "Checks", "that", "an", "instance", "of", "VpcConfig", "has", "the", "expected", "keys", "and", "values", "removes", "unexpected", "keys", "and", "raises", "ValueErrors", "if", "any", "expectations", "are", "violated" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/vpc_utils.py#L67-L108
[ "def", "sanitize", "(", "vpc_config", ")", ":", "if", "vpc_config", "is", "None", ":", "return", "vpc_config", "elif", "type", "(", "vpc_config", ")", "is", "not", "dict", ":", "raise", "ValueError", "(", "'vpc_config is not a dict: {}'", ".", "format", "(", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
KMeans.hyperparameters
Return the SageMaker hyperparameters for training this KMeans Estimator
src/sagemaker/amazon/kmeans.py
def hyperparameters(self): """Return the SageMaker hyperparameters for training this KMeans Estimator""" hp_dict = dict(force_dense='True') # KMeans requires this hp to fit on Record objects hp_dict.update(super(KMeans, self).hyperparameters()) return hp_dict
def hyperparameters(self): """Return the SageMaker hyperparameters for training this KMeans Estimator""" hp_dict = dict(force_dense='True') # KMeans requires this hp to fit on Record objects hp_dict.update(super(KMeans, self).hyperparameters()) return hp_dict
[ "Return", "the", "SageMaker", "hyperparameters", "for", "training", "this", "KMeans", "Estimator" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/amazon/kmeans.py#L122-L126
[ "def", "hyperparameters", "(", "self", ")", ":", "hp_dict", "=", "dict", "(", "force_dense", "=", "'True'", ")", "# KMeans requires this hp to fit on Record objects", "hp_dict", ".", "update", "(", "super", "(", "KMeans", ",", "self", ")", ".", "hyperparameters", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
create_identical_dataset_and_algorithm_tuner
Creates a new tuner by copying the request fields from the provided parent to the new instance of ``HyperparameterTuner`` followed by addition of warm start configuration with the type as "IdenticalDataAndAlgorithm" and ``parents`` as the union of provided list of ``additional_parents`` and the ...
src/sagemaker/tuner.py
def create_identical_dataset_and_algorithm_tuner(parent, additional_parents=None, sagemaker_session=None): """Creates a new tuner by copying the request fields from the provided parent to the new instance of ``HyperparameterTuner`` followed by addition of warm start configuration with the type as "I...
def create_identical_dataset_and_algorithm_tuner(parent, additional_parents=None, sagemaker_session=None): """Creates a new tuner by copying the request fields from the provided parent to the new instance of ``HyperparameterTuner`` followed by addition of warm start configuration with the type as "I...
[ "Creates", "a", "new", "tuner", "by", "copying", "the", "request", "fields", "from", "the", "provided", "parent", "to", "the", "new", "instance", "of", "HyperparameterTuner", "followed", "by", "addition", "of", "warm", "start", "configuration", "with", "the", ...
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L663-L683
[ "def", "create_identical_dataset_and_algorithm_tuner", "(", "parent", ",", "additional_parents", "=", "None", ",", "sagemaker_session", "=", "None", ")", ":", "parent_tuner", "=", "HyperparameterTuner", ".", "attach", "(", "tuning_job_name", "=", "parent", ",", "sagem...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
create_transfer_learning_tuner
Creates a new ``HyperParameterTuner`` by copying the request fields from the provided parent to the new instance of ``HyperparameterTuner`` followed by addition of warm start configuration with the type as "TransferLearning" and ``parents`` as the union of provided list of ``additional_parents`` and the...
src/sagemaker/tuner.py
def create_transfer_learning_tuner(parent, additional_parents=None, estimator=None, sagemaker_session=None): """Creates a new ``HyperParameterTuner`` by copying the request fields from the provided parent to the new instance of ``HyperparameterTuner`` followed by addition of warm start configuration with th...
def create_transfer_learning_tuner(parent, additional_parents=None, estimator=None, sagemaker_session=None): """Creates a new ``HyperParameterTuner`` by copying the request fields from the provided parent to the new instance of ``HyperparameterTuner`` followed by addition of warm start configuration with th...
[ "Creates", "a", "new", "HyperParameterTuner", "by", "copying", "the", "request", "fields", "from", "the", "provided", "parent", "to", "the", "new", "instance", "of", "HyperparameterTuner", "followed", "by", "addition", "of", "warm", "start", "configuration", "with...
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L686-L707
[ "def", "create_transfer_learning_tuner", "(", "parent", ",", "additional_parents", "=", "None", ",", "estimator", "=", "None", ",", "sagemaker_session", "=", "None", ")", ":", "parent_tuner", "=", "HyperparameterTuner", ".", "attach", "(", "tuning_job_name", "=", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
WarmStartConfig.from_job_desc
Creates an instance of ``WarmStartConfig`` class, from warm start configuration response from DescribeTrainingJob. Args: warm_start_config (dict): The expected format of the ``warm_start_config`` contains two first-class fields: * "type": Type of warm start tuner...
src/sagemaker/tuner.py
def from_job_desc(cls, warm_start_config): """Creates an instance of ``WarmStartConfig`` class, from warm start configuration response from DescribeTrainingJob. Args: warm_start_config (dict): The expected format of the ``warm_start_config`` contains two first-class fiel...
def from_job_desc(cls, warm_start_config): """Creates an instance of ``WarmStartConfig`` class, from warm start configuration response from DescribeTrainingJob. Args: warm_start_config (dict): The expected format of the ``warm_start_config`` contains two first-class fiel...
[ "Creates", "an", "instance", "of", "WarmStartConfig", "class", "from", "warm", "start", "configuration", "response", "from", "DescribeTrainingJob", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L91-L129
[ "def", "from_job_desc", "(", "cls", ",", "warm_start_config", ")", ":", "if", "not", "warm_start_config", "or", "WARM_START_TYPE", "not", "in", "warm_start_config", "or", "PARENT_HYPERPARAMETER_TUNING_JOBS", "not", "in", "warm_start_config", ":", "return", "None", "pa...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
WarmStartConfig.to_input_req
Converts the ``self`` instance to the desired input request format. Returns: dict: Containing the "WarmStartType" and "ParentHyperParameterTuningJobs" as the first class fields. Examples: >>> warm_start_config = WarmStartConfig(warm_start_type=WarmStartTypes.TransferLearning,pa...
src/sagemaker/tuner.py
def to_input_req(self): """Converts the ``self`` instance to the desired input request format. Returns: dict: Containing the "WarmStartType" and "ParentHyperParameterTuningJobs" as the first class fields. Examples: >>> warm_start_config = WarmStartConfig(warm_start_type...
def to_input_req(self): """Converts the ``self`` instance to the desired input request format. Returns: dict: Containing the "WarmStartType" and "ParentHyperParameterTuningJobs" as the first class fields. Examples: >>> warm_start_config = WarmStartConfig(warm_start_type...
[ "Converts", "the", "self", "instance", "to", "the", "desired", "input", "request", "format", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L131-L151
[ "def", "to_input_req", "(", "self", ")", ":", "return", "{", "WARM_START_TYPE", ":", "self", ".", "type", ".", "value", ",", "PARENT_HYPERPARAMETER_TUNING_JOBS", ":", "[", "{", "HYPERPARAMETER_TUNING_JOB_NAME", ":", "parent", "}", "for", "parent", "in", "self", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
HyperparameterTuner.fit
Start a hyperparameter tuning job. Args: inputs: Information about the training data. Please refer to the ``fit()`` method of the associated estimator, as this can take any of the following forms: * (str) - The S3 location where training data is saved. ...
src/sagemaker/tuner.py
def fit(self, inputs=None, job_name=None, include_cls_metadata=False, **kwargs): """Start a hyperparameter tuning job. Args: inputs: Information about the training data. Please refer to the ``fit()`` method of the associated estimator, as this can take any of the following f...
def fit(self, inputs=None, job_name=None, include_cls_metadata=False, **kwargs): """Start a hyperparameter tuning job. Args: inputs: Information about the training data. Please refer to the ``fit()`` method of the associated estimator, as this can take any of the following f...
[ "Start", "a", "hyperparameter", "tuning", "job", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L240-L278
[ "def", "fit", "(", "self", ",", "inputs", "=", "None", ",", "job_name", "=", "None", ",", "include_cls_metadata", "=", "False", ",", "*", "*", "kwargs", ")", ":", "if", "isinstance", "(", "inputs", ",", "list", ")", "or", "isinstance", "(", "inputs", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
HyperparameterTuner.attach
Attach to an existing hyperparameter tuning job. Create a HyperparameterTuner bound to an existing hyperparameter tuning job. After attaching, if there exists a best training job (or any other completed training job), that can be deployed to create an Amazon SageMaker Endpoint and return a ``Pr...
src/sagemaker/tuner.py
def attach(cls, tuning_job_name, sagemaker_session=None, job_details=None, estimator_cls=None): """Attach to an existing hyperparameter tuning job. Create a HyperparameterTuner bound to an existing hyperparameter tuning job. After attaching, if there exists a best training job (or any other com...
def attach(cls, tuning_job_name, sagemaker_session=None, job_details=None, estimator_cls=None): """Attach to an existing hyperparameter tuning job. Create a HyperparameterTuner bound to an existing hyperparameter tuning job. After attaching, if there exists a best training job (or any other com...
[ "Attach", "to", "an", "existing", "hyperparameter", "tuning", "job", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L281-L325
[ "def", "attach", "(", "cls", ",", "tuning_job_name", ",", "sagemaker_session", "=", "None", ",", "job_details", "=", "None", ",", "estimator_cls", "=", "None", ")", ":", "sagemaker_session", "=", "sagemaker_session", "or", "Session", "(", ")", "if", "job_detai...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
HyperparameterTuner.deploy
Deploy the best trained or user specified model to an Amazon SageMaker endpoint and return a ``sagemaker.RealTimePredictor`` object. For more information: http://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works-training.html Args: initial_instance_count (int): Minimum number of...
src/sagemaker/tuner.py
def deploy(self, initial_instance_count, instance_type, accelerator_type=None, endpoint_name=None, **kwargs): """Deploy the best trained or user specified model to an Amazon SageMaker endpoint and return a ``sagemaker.RealTimePredictor`` object. For more information: http://docs.aws.amazon.com/...
def deploy(self, initial_instance_count, instance_type, accelerator_type=None, endpoint_name=None, **kwargs): """Deploy the best trained or user specified model to an Amazon SageMaker endpoint and return a ``sagemaker.RealTimePredictor`` object. For more information: http://docs.aws.amazon.com/...
[ "Deploy", "the", "best", "trained", "or", "user", "specified", "model", "to", "an", "Amazon", "SageMaker", "endpoint", "and", "return", "a", "sagemaker", ".", "RealTimePredictor", "object", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L327-L355
[ "def", "deploy", "(", "self", ",", "initial_instance_count", ",", "instance_type", ",", "accelerator_type", "=", "None", ",", "endpoint_name", "=", "None", ",", "*", "*", "kwargs", ")", ":", "endpoint_name", "=", "endpoint_name", "or", "self", ".", "best_train...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
HyperparameterTuner.best_training_job
Return name of the best training job for the latest hyperparameter tuning job. Raises: Exception: If there is no best training job available for the hyperparameter tuning job.
src/sagemaker/tuner.py
def best_training_job(self): """Return name of the best training job for the latest hyperparameter tuning job. Raises: Exception: If there is no best training job available for the hyperparameter tuning job. """ self._ensure_last_tuning_job() tuning_job_describe_res...
def best_training_job(self): """Return name of the best training job for the latest hyperparameter tuning job. Raises: Exception: If there is no best training job available for the hyperparameter tuning job. """ self._ensure_last_tuning_job() tuning_job_describe_res...
[ "Return", "name", "of", "the", "best", "training", "job", "for", "the", "latest", "hyperparameter", "tuning", "job", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L369-L384
[ "def", "best_training_job", "(", "self", ")", ":", "self", ".", "_ensure_last_tuning_job", "(", ")", "tuning_job_describe_result", "=", "self", ".", "estimator", ".", "sagemaker_session", ".", "sagemaker_client", ".", "describe_hyper_parameter_tuning_job", "(", "HyperPa...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
HyperparameterTuner.delete_endpoint
Delete an Amazon SageMaker endpoint. If an endpoint name is not specified, this defaults to looking for an endpoint that shares a name with the best training job for deletion. Args: endpoint_name (str): Name of the endpoint to delete
src/sagemaker/tuner.py
def delete_endpoint(self, endpoint_name=None): """Delete an Amazon SageMaker endpoint. If an endpoint name is not specified, this defaults to looking for an endpoint that shares a name with the best training job for deletion. Args: endpoint_name (str): Name of the endpoint ...
def delete_endpoint(self, endpoint_name=None): """Delete an Amazon SageMaker endpoint. If an endpoint name is not specified, this defaults to looking for an endpoint that shares a name with the best training job for deletion. Args: endpoint_name (str): Name of the endpoint ...
[ "Delete", "an", "Amazon", "SageMaker", "endpoint", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L386-L396
[ "def", "delete_endpoint", "(", "self", ",", "endpoint_name", "=", "None", ")", ":", "endpoint_name", "=", "endpoint_name", "or", "self", ".", "best_training_job", "(", ")", "self", ".", "sagemaker_session", ".", "delete_endpoint", "(", "endpoint_name", ")" ]
a9e724c7d3f5572b68c3903548c792a59d99799a
train
HyperparameterTuner.hyperparameter_ranges
Return the hyperparameter ranges in a dictionary to be used as part of a request for creating a hyperparameter tuning job.
src/sagemaker/tuner.py
def hyperparameter_ranges(self): """Return the hyperparameter ranges in a dictionary to be used as part of a request for creating a hyperparameter tuning job. """ hyperparameter_ranges = dict() for range_type in ParameterRange.__all_types__: parameter_ranges = [] ...
def hyperparameter_ranges(self): """Return the hyperparameter ranges in a dictionary to be used as part of a request for creating a hyperparameter tuning job. """ hyperparameter_ranges = dict() for range_type in ParameterRange.__all_types__: parameter_ranges = [] ...
[ "Return", "the", "hyperparameter", "ranges", "in", "a", "dictionary", "to", "be", "used", "as", "part", "of", "a", "request", "for", "creating", "a", "hyperparameter", "tuning", "job", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L473-L489
[ "def", "hyperparameter_ranges", "(", "self", ")", ":", "hyperparameter_ranges", "=", "dict", "(", ")", "for", "range_type", "in", "ParameterRange", ".", "__all_types__", ":", "parameter_ranges", "=", "[", "]", "for", "parameter_name", ",", "parameter", "in", "se...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
HyperparameterTuner.transfer_learning_tuner
Creates a new ``HyperparameterTuner`` by copying the request fields from the provided parent to the new instance of ``HyperparameterTuner``. Followed by addition of warm start configuration with the type as "TransferLearning" and parents as the union of provided list of ``additional_parents`` and the ``...
src/sagemaker/tuner.py
def transfer_learning_tuner(self, additional_parents=None, estimator=None): """Creates a new ``HyperparameterTuner`` by copying the request fields from the provided parent to the new instance of ``HyperparameterTuner``. Followed by addition of warm start configuration with the type as "TransferL...
def transfer_learning_tuner(self, additional_parents=None, estimator=None): """Creates a new ``HyperparameterTuner`` by copying the request fields from the provided parent to the new instance of ``HyperparameterTuner``. Followed by addition of warm start configuration with the type as "TransferL...
[ "Creates", "a", "new", "HyperparameterTuner", "by", "copying", "the", "request", "fields", "from", "the", "provided", "parent", "to", "the", "new", "instance", "of", "HyperparameterTuner", ".", "Followed", "by", "addition", "of", "warm", "start", "configuration", ...
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L532-L557
[ "def", "transfer_learning_tuner", "(", "self", ",", "additional_parents", "=", "None", ",", "estimator", "=", "None", ")", ":", "return", "self", ".", "_create_warm_start_tuner", "(", "additional_parents", "=", "additional_parents", ",", "warm_start_type", "=", "War...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
HyperparameterTuner.identical_dataset_and_algorithm_tuner
Creates a new ``HyperparameterTuner`` by copying the request fields from the provided parent to the new instance of ``HyperparameterTuner``. Followed by addition of warm start configuration with the type as "IdenticalDataAndAlgorithm" and parents as the union of provided list of ``additional_parents`` a...
src/sagemaker/tuner.py
def identical_dataset_and_algorithm_tuner(self, additional_parents=None): """Creates a new ``HyperparameterTuner`` by copying the request fields from the provided parent to the new instance of ``HyperparameterTuner``. Followed by addition of warm start configuration with the type as "IdenticalDa...
def identical_dataset_and_algorithm_tuner(self, additional_parents=None): """Creates a new ``HyperparameterTuner`` by copying the request fields from the provided parent to the new instance of ``HyperparameterTuner``. Followed by addition of warm start configuration with the type as "IdenticalDa...
[ "Creates", "a", "new", "HyperparameterTuner", "by", "copying", "the", "request", "fields", "from", "the", "provided", "parent", "to", "the", "new", "instance", "of", "HyperparameterTuner", ".", "Followed", "by", "addition", "of", "warm", "start", "configuration", ...
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L559-L581
[ "def", "identical_dataset_and_algorithm_tuner", "(", "self", ",", "additional_parents", "=", "None", ")", ":", "return", "self", ".", "_create_warm_start_tuner", "(", "additional_parents", "=", "additional_parents", ",", "warm_start_type", "=", "WarmStartTypes", ".", "I...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
HyperparameterTuner._create_warm_start_tuner
Creates a new ``HyperparameterTuner`` with ``WarmStartConfig``, where type will be equal to ``warm_start_type`` and``parents`` would be equal to union of ``additional_parents`` and self. Args: additional_parents (set{str}): Additional parents along with self, to be used for warm starting. ...
src/sagemaker/tuner.py
def _create_warm_start_tuner(self, additional_parents, warm_start_type, estimator=None): """Creates a new ``HyperparameterTuner`` with ``WarmStartConfig``, where type will be equal to ``warm_start_type`` and``parents`` would be equal to union of ``additional_parents`` and self. Args: ...
def _create_warm_start_tuner(self, additional_parents, warm_start_type, estimator=None): """Creates a new ``HyperparameterTuner`` with ``WarmStartConfig``, where type will be equal to ``warm_start_type`` and``parents`` would be equal to union of ``additional_parents`` and self. Args: ...
[ "Creates", "a", "new", "HyperparameterTuner", "with", "WarmStartConfig", "where", "type", "will", "be", "equal", "to", "warm_start_type", "and", "parents", "would", "be", "equal", "to", "union", "of", "additional_parents", "and", "self", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L583-L606
[ "def", "_create_warm_start_tuner", "(", "self", ",", "additional_parents", ",", "warm_start_type", ",", "estimator", "=", "None", ")", ":", "all_parents", "=", "{", "self", ".", "latest_tuning_job", ".", "name", "}", "if", "additional_parents", ":", "all_parents",...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
_TuningJob.start_new
Create a new Amazon SageMaker hyperparameter tuning job from the HyperparameterTuner. Args: tuner (sagemaker.tuner.HyperparameterTuner): HyperparameterTuner object created by the user. inputs (str): Parameters used when called :meth:`~sagemaker.estimator.EstimatorBase.fit`. Ret...
src/sagemaker/tuner.py
def start_new(cls, tuner, inputs): """Create a new Amazon SageMaker hyperparameter tuning job from the HyperparameterTuner. Args: tuner (sagemaker.tuner.HyperparameterTuner): HyperparameterTuner object created by the user. inputs (str): Parameters used when called :meth:`~sagema...
def start_new(cls, tuner, inputs): """Create a new Amazon SageMaker hyperparameter tuning job from the HyperparameterTuner. Args: tuner (sagemaker.tuner.HyperparameterTuner): HyperparameterTuner object created by the user. inputs (str): Parameters used when called :meth:`~sagema...
[ "Create", "a", "new", "Amazon", "SageMaker", "hyperparameter", "tuning", "job", "from", "the", "HyperparameterTuner", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/tuner.py#L611-L654
[ "def", "start_new", "(", "cls", ",", "tuner", ",", "inputs", ")", ":", "config", "=", "_Job", ".", "_load_config", "(", "inputs", ",", "tuner", ".", "estimator", ")", "warm_start_config_req", "=", "None", "if", "tuner", ".", "warm_start_config", ":", "warm...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
some
Return True iff there is an element, a, of arr such that a is not None
src/sagemaker/logs.py
def some(arr): """Return True iff there is an element, a, of arr such that a is not None""" return functools.reduce(lambda x, y: x or (y is not None), arr, False)
def some(arr): """Return True iff there is an element, a, of arr such that a is not None""" return functools.reduce(lambda x, y: x or (y is not None), arr, False)
[ "Return", "True", "iff", "there", "is", "an", "element", "a", "of", "arr", "such", "that", "a", "is", "not", "None" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/logs.py#L70-L72
[ "def", "some", "(", "arr", ")", ":", "return", "functools", ".", "reduce", "(", "lambda", "x", ",", "y", ":", "x", "or", "(", "y", "is", "not", "None", ")", ",", "arr", ",", "False", ")" ]
a9e724c7d3f5572b68c3903548c792a59d99799a
train
multi_stream_iter
Iterate over the available events coming from a set of log streams in a single log group interleaving the events from each stream so they're yielded in timestamp order. Args: client (boto3 client): The boto client for logs. log_group (str): The name of the log group. streams (list of st...
src/sagemaker/logs.py
def multi_stream_iter(client, log_group, streams, positions=None): """Iterate over the available events coming from a set of log streams in a single log group interleaving the events from each stream so they're yielded in timestamp order. Args: client (boto3 client): The boto client for logs. ...
def multi_stream_iter(client, log_group, streams, positions=None): """Iterate over the available events coming from a set of log streams in a single log group interleaving the events from each stream so they're yielded in timestamp order. Args: client (boto3 client): The boto client for logs. ...
[ "Iterate", "over", "the", "available", "events", "coming", "from", "a", "set", "of", "log", "streams", "in", "a", "single", "log", "group", "interleaving", "the", "events", "from", "each", "stream", "so", "they", "re", "yielded", "in", "timestamp", "order", ...
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/logs.py#L80-L113
[ "def", "multi_stream_iter", "(", "client", ",", "log_group", ",", "streams", ",", "positions", "=", "None", ")", ":", "positions", "=", "positions", "or", "{", "s", ":", "Position", "(", "timestamp", "=", "0", ",", "skip", "=", "0", ")", "for", "s", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
log_stream
A generator for log items in a single stream. This will yield all the items that are available at the current moment. Args: client (boto3.CloudWatchLogs.Client): The Boto client for CloudWatch logs. log_group (str): The name of the log group. stream_name (str): The name of the specific ...
src/sagemaker/logs.py
def log_stream(client, log_group, stream_name, start_time=0, skip=0): """A generator for log items in a single stream. This will yield all the items that are available at the current moment. Args: client (boto3.CloudWatchLogs.Client): The Boto client for CloudWatch logs. log_group (str): Th...
def log_stream(client, log_group, stream_name, start_time=0, skip=0): """A generator for log items in a single stream. This will yield all the items that are available at the current moment. Args: client (boto3.CloudWatchLogs.Client): The Boto client for CloudWatch logs. log_group (str): Th...
[ "A", "generator", "for", "log", "items", "in", "a", "single", "stream", ".", "This", "will", "yield", "all", "the", "items", "that", "are", "available", "at", "the", "current", "moment", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/logs.py#L116-L156
[ "def", "log_stream", "(", "client", ",", "log_group", ",", "stream_name", ",", "start_time", "=", "0", ",", "skip", "=", "0", ")", ":", "next_token", "=", "None", "event_count", "=", "1", "while", "event_count", ">", "0", ":", "if", "next_token", "is", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
RLEstimator.create_model
Create a SageMaker ``RLEstimatorModel`` object that can be deployed to an Endpoint. Args: role (str): The ``ExecutionRoleArn`` IAM Role ARN for the ``Model``, which is also used during transform jobs. If not specified, the role from the Estimator will be used. vpc_config...
src/sagemaker/rl/estimator.py
def create_model(self, role=None, vpc_config_override=VPC_CONFIG_DEFAULT, entry_point=None, source_dir=None, dependencies=None): """Create a SageMaker ``RLEstimatorModel`` object that can be deployed to an Endpoint. Args: role (str): The ``ExecutionRoleArn`` IAM Role AR...
def create_model(self, role=None, vpc_config_override=VPC_CONFIG_DEFAULT, entry_point=None, source_dir=None, dependencies=None): """Create a SageMaker ``RLEstimatorModel`` object that can be deployed to an Endpoint. Args: role (str): The ``ExecutionRoleArn`` IAM Role AR...
[ "Create", "a", "SageMaker", "RLEstimatorModel", "object", "that", "can", "be", "deployed", "to", "an", "Endpoint", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/rl/estimator.py#L145-L219
[ "def", "create_model", "(", "self", ",", "role", "=", "None", ",", "vpc_config_override", "=", "VPC_CONFIG_DEFAULT", ",", "entry_point", "=", "None", ",", "source_dir", "=", "None", ",", "dependencies", "=", "None", ")", ":", "base_args", "=", "dict", "(", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
RLEstimator.train_image
Return the Docker image to use for training. The :meth:`~sagemaker.estimator.EstimatorBase.fit` method, which does the model training, calls this method to find the image to use for model training. Returns: str: The URI of the Docker image.
src/sagemaker/rl/estimator.py
def train_image(self): """Return the Docker image to use for training. The :meth:`~sagemaker.estimator.EstimatorBase.fit` method, which does the model training, calls this method to find the image to use for model training. Returns: str: The URI of the Docker image. ...
def train_image(self): """Return the Docker image to use for training. The :meth:`~sagemaker.estimator.EstimatorBase.fit` method, which does the model training, calls this method to find the image to use for model training. Returns: str: The URI of the Docker image. ...
[ "Return", "the", "Docker", "image", "to", "use", "for", "training", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/rl/estimator.py#L221-L237
[ "def", "train_image", "(", "self", ")", ":", "if", "self", ".", "image_name", ":", "return", "self", ".", "image_name", "else", ":", "return", "fw_utils", ".", "create_image_uri", "(", "self", ".", "sagemaker_session", ".", "boto_region_name", ",", "self", "...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
RLEstimator._prepare_init_params_from_job_description
Convert the job description to init params that can be handled by the class constructor Args: job_details: the returned job details from a describe_training_job API call. model_channel_name (str): Name of the channel where pre-trained model data will be downloaded. ...
src/sagemaker/rl/estimator.py
def _prepare_init_params_from_job_description(cls, job_details, model_channel_name=None): """Convert the job description to init params that can be handled by the class constructor Args: job_details: the returned job details from a describe_training_job API call. model_channel_n...
def _prepare_init_params_from_job_description(cls, job_details, model_channel_name=None): """Convert the job description to init params that can be handled by the class constructor Args: job_details: the returned job details from a describe_training_job API call. model_channel_n...
[ "Convert", "the", "job", "description", "to", "init", "params", "that", "can", "be", "handled", "by", "the", "class", "constructor" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/rl/estimator.py#L240-L276
[ "def", "_prepare_init_params_from_job_description", "(", "cls", ",", "job_details", ",", "model_channel_name", "=", "None", ")", ":", "init_params", "=", "super", "(", "RLEstimator", ",", "cls", ")", ".", "_prepare_init_params_from_job_description", "(", "job_details", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
RLEstimator.hyperparameters
Return hyperparameters used by your custom TensorFlow code during model training.
src/sagemaker/rl/estimator.py
def hyperparameters(self): """Return hyperparameters used by your custom TensorFlow code during model training.""" hyperparameters = super(RLEstimator, self).hyperparameters() additional_hyperparameters = {SAGEMAKER_OUTPUT_LOCATION: self.output_path, # TODO...
def hyperparameters(self): """Return hyperparameters used by your custom TensorFlow code during model training.""" hyperparameters = super(RLEstimator, self).hyperparameters() additional_hyperparameters = {SAGEMAKER_OUTPUT_LOCATION: self.output_path, # TODO...
[ "Return", "hyperparameters", "used", "by", "your", "custom", "TensorFlow", "code", "during", "model", "training", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/rl/estimator.py#L278-L287
[ "def", "hyperparameters", "(", "self", ")", ":", "hyperparameters", "=", "super", "(", "RLEstimator", ",", "self", ")", ".", "hyperparameters", "(", ")", "additional_hyperparameters", "=", "{", "SAGEMAKER_OUTPUT_LOCATION", ":", "self", ".", "output_path", ",", "...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
RLEstimator.default_metric_definitions
Provides default metric definitions based on provided toolkit. Args: toolkit(sagemaker.rl.RLToolkit): RL Toolkit to be used for training. Returns: list: metric definitions
src/sagemaker/rl/estimator.py
def default_metric_definitions(cls, toolkit): """Provides default metric definitions based on provided toolkit. Args: toolkit(sagemaker.rl.RLToolkit): RL Toolkit to be used for training. Returns: list: metric definitions """ if toolkit is RLToolkit.COACH...
def default_metric_definitions(cls, toolkit): """Provides default metric definitions based on provided toolkit. Args: toolkit(sagemaker.rl.RLToolkit): RL Toolkit to be used for training. Returns: list: metric definitions """ if toolkit is RLToolkit.COACH...
[ "Provides", "default", "metric", "definitions", "based", "on", "provided", "toolkit", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/rl/estimator.py#L370-L393
[ "def", "default_metric_definitions", "(", "cls", ",", "toolkit", ")", ":", "if", "toolkit", "is", "RLToolkit", ".", "COACH", ":", "return", "[", "{", "'Name'", ":", "'reward-training'", ",", "'Regex'", ":", "'^Training>.*Total reward=(.*?),'", "}", ",", "{", "...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
prepare_framework
Prepare S3 operations (specify where to upload `source_dir`) and environment variables related to framework. Args: estimator (sagemaker.estimator.Estimator): The framework estimator to get information from and update. s3_operations (dict): The dict to specify s3 operations (upload `source_dir`)...
src/sagemaker/workflow/airflow.py
def prepare_framework(estimator, s3_operations): """Prepare S3 operations (specify where to upload `source_dir`) and environment variables related to framework. Args: estimator (sagemaker.estimator.Estimator): The framework estimator to get information from and update. s3_operations (dict):...
def prepare_framework(estimator, s3_operations): """Prepare S3 operations (specify where to upload `source_dir`) and environment variables related to framework. Args: estimator (sagemaker.estimator.Estimator): The framework estimator to get information from and update. s3_operations (dict):...
[ "Prepare", "S3", "operations", "(", "specify", "where", "to", "upload", "source_dir", ")", "and", "environment", "variables", "related", "to", "framework", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L23-L57
[ "def", "prepare_framework", "(", "estimator", ",", "s3_operations", ")", ":", "if", "estimator", ".", "code_location", "is", "not", "None", ":", "bucket", ",", "key", "=", "fw_utils", ".", "parse_s3_url", "(", "estimator", ".", "code_location", ")", "key", "...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
prepare_amazon_algorithm_estimator
Set up amazon algorithm estimator, adding the required `feature_dim` hyperparameter from training data. Args: estimator (sagemaker.amazon.amazon_estimator.AmazonAlgorithmEstimatorBase): An estimator for a built-in Amazon algorithm to get information from and update. inputs: The training...
src/sagemaker/workflow/airflow.py
def prepare_amazon_algorithm_estimator(estimator, inputs, mini_batch_size=None): """ Set up amazon algorithm estimator, adding the required `feature_dim` hyperparameter from training data. Args: estimator (sagemaker.amazon.amazon_estimator.AmazonAlgorithmEstimatorBase): An estimator for a b...
def prepare_amazon_algorithm_estimator(estimator, inputs, mini_batch_size=None): """ Set up amazon algorithm estimator, adding the required `feature_dim` hyperparameter from training data. Args: estimator (sagemaker.amazon.amazon_estimator.AmazonAlgorithmEstimatorBase): An estimator for a b...
[ "Set", "up", "amazon", "algorithm", "estimator", "adding", "the", "required", "feature_dim", "hyperparameter", "from", "training", "data", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L60-L83
[ "def", "prepare_amazon_algorithm_estimator", "(", "estimator", ",", "inputs", ",", "mini_batch_size", "=", "None", ")", ":", "if", "isinstance", "(", "inputs", ",", "list", ")", ":", "for", "record", "in", "inputs", ":", "if", "isinstance", "(", "record", ",...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
training_base_config
Export Airflow base training config from an estimator Args: estimator (sagemaker.estimator.EstimatorBase): The estimator to export training config from. Can be a BYO estimator, Framework estimator or Amazon algorithm estimator. inputs: Information about the training data. Pl...
src/sagemaker/workflow/airflow.py
def training_base_config(estimator, inputs=None, job_name=None, mini_batch_size=None): """Export Airflow base training config from an estimator Args: estimator (sagemaker.estimator.EstimatorBase): The estimator to export training config from. Can be a BYO estimator, Framework es...
def training_base_config(estimator, inputs=None, job_name=None, mini_batch_size=None): """Export Airflow base training config from an estimator Args: estimator (sagemaker.estimator.EstimatorBase): The estimator to export training config from. Can be a BYO estimator, Framework es...
[ "Export", "Airflow", "base", "training", "config", "from", "an", "estimator" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L86-L162
[ "def", "training_base_config", "(", "estimator", ",", "inputs", "=", "None", ",", "job_name", "=", "None", ",", "mini_batch_size", "=", "None", ")", ":", "default_bucket", "=", "estimator", ".", "sagemaker_session", ".", "default_bucket", "(", ")", "s3_operation...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
training_config
Export Airflow training config from an estimator Args: estimator (sagemaker.estimator.EstimatorBase): The estimator to export training config from. Can be a BYO estimator, Framework estimator or Amazon algorithm estimator. inputs: Information about the training data. Please ...
src/sagemaker/workflow/airflow.py
def training_config(estimator, inputs=None, job_name=None, mini_batch_size=None): """Export Airflow training config from an estimator Args: estimator (sagemaker.estimator.EstimatorBase): The estimator to export training config from. Can be a BYO estimator, Framework estimator or...
def training_config(estimator, inputs=None, job_name=None, mini_batch_size=None): """Export Airflow training config from an estimator Args: estimator (sagemaker.estimator.EstimatorBase): The estimator to export training config from. Can be a BYO estimator, Framework estimator or...
[ "Export", "Airflow", "training", "config", "from", "an", "estimator" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L165-L204
[ "def", "training_config", "(", "estimator", ",", "inputs", "=", "None", ",", "job_name", "=", "None", ",", "mini_batch_size", "=", "None", ")", ":", "train_config", "=", "training_base_config", "(", "estimator", ",", "inputs", ",", "job_name", ",", "mini_batch...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
tuning_config
Export Airflow tuning config from an estimator Args: tuner (sagemaker.tuner.HyperparameterTuner): The tuner to export tuning config from. inputs: Information about the training data. Please refer to the ``fit()`` method of the associated estimator in the tuner, as this can take any ...
src/sagemaker/workflow/airflow.py
def tuning_config(tuner, inputs, job_name=None): """Export Airflow tuning config from an estimator Args: tuner (sagemaker.tuner.HyperparameterTuner): The tuner to export tuning config from. inputs: Information about the training data. Please refer to the ``fit()`` method of the ...
def tuning_config(tuner, inputs, job_name=None): """Export Airflow tuning config from an estimator Args: tuner (sagemaker.tuner.HyperparameterTuner): The tuner to export tuning config from. inputs: Information about the training data. Please refer to the ``fit()`` method of the ...
[ "Export", "Airflow", "tuning", "config", "from", "an", "estimator" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L207-L280
[ "def", "tuning_config", "(", "tuner", ",", "inputs", ",", "job_name", "=", "None", ")", ":", "train_config", "=", "training_base_config", "(", "tuner", ".", "estimator", ",", "inputs", ")", "hyperparameters", "=", "train_config", ".", "pop", "(", "'HyperParame...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
update_submit_s3_uri
Updated the S3 URI of the framework source directory in given estimator. Args: estimator (sagemaker.estimator.Framework): The Framework estimator to update. job_name (str): The new job name included in the submit S3 URI Returns: str: The updated S3 URI of framework source directory
src/sagemaker/workflow/airflow.py
def update_submit_s3_uri(estimator, job_name): """Updated the S3 URI of the framework source directory in given estimator. Args: estimator (sagemaker.estimator.Framework): The Framework estimator to update. job_name (str): The new job name included in the submit S3 URI Returns: str...
def update_submit_s3_uri(estimator, job_name): """Updated the S3 URI of the framework source directory in given estimator. Args: estimator (sagemaker.estimator.Framework): The Framework estimator to update. job_name (str): The new job name included in the submit S3 URI Returns: str...
[ "Updated", "the", "S3", "URI", "of", "the", "framework", "source", "directory", "in", "given", "estimator", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L283-L303
[ "def", "update_submit_s3_uri", "(", "estimator", ",", "job_name", ")", ":", "if", "estimator", ".", "uploaded_code", "is", "None", ":", "return", "pattern", "=", "r'(?<=/)[^/]+?(?=/source/sourcedir.tar.gz)'", "# update the S3 URI with the latest training job.", "# s3://path/o...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
update_estimator_from_task
Update training job of the estimator from a task in the DAG Args: estimator (sagemaker.estimator.EstimatorBase): The estimator to update task_id (str): The task id of any airflow.contrib.operators.SageMakerTrainingOperator or airflow.contrib.operators.SageMakerTuningOperator that genera...
src/sagemaker/workflow/airflow.py
def update_estimator_from_task(estimator, task_id, task_type): """Update training job of the estimator from a task in the DAG Args: estimator (sagemaker.estimator.EstimatorBase): The estimator to update task_id (str): The task id of any airflow.contrib.operators.SageMakerTrainingOperator or ...
def update_estimator_from_task(estimator, task_id, task_type): """Update training job of the estimator from a task in the DAG Args: estimator (sagemaker.estimator.EstimatorBase): The estimator to update task_id (str): The task id of any airflow.contrib.operators.SageMakerTrainingOperator or ...
[ "Update", "training", "job", "of", "the", "estimator", "from", "a", "task", "in", "the", "DAG" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L306-L330
[ "def", "update_estimator_from_task", "(", "estimator", ",", "task_id", ",", "task_type", ")", ":", "if", "task_type", "is", "None", ":", "return", "if", "task_type", ".", "lower", "(", ")", "==", "'training'", ":", "training_job", "=", "\"{{ ti.xcom_pull(task_id...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
prepare_framework_container_def
Prepare the framework model container information. Specify related S3 operations for Airflow to perform. (Upload `source_dir`) Args: model (sagemaker.model.FrameworkModel): The framework model instance_type (str): The EC2 instance type to deploy this Model to. For example, 'ml.p2.xlarge'. ...
src/sagemaker/workflow/airflow.py
def prepare_framework_container_def(model, instance_type, s3_operations): """Prepare the framework model container information. Specify related S3 operations for Airflow to perform. (Upload `source_dir`) Args: model (sagemaker.model.FrameworkModel): The framework model instance_type (str): ...
def prepare_framework_container_def(model, instance_type, s3_operations): """Prepare the framework model container information. Specify related S3 operations for Airflow to perform. (Upload `source_dir`) Args: model (sagemaker.model.FrameworkModel): The framework model instance_type (str): ...
[ "Prepare", "the", "framework", "model", "container", "information", ".", "Specify", "related", "S3", "operations", "for", "Airflow", "to", "perform", ".", "(", "Upload", "source_dir", ")" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L333-L381
[ "def", "prepare_framework_container_def", "(", "model", ",", "instance_type", ",", "s3_operations", ")", ":", "deploy_image", "=", "model", ".", "image", "if", "not", "deploy_image", ":", "region_name", "=", "model", ".", "sagemaker_session", ".", "boto_session", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
model_config
Export Airflow model config from a SageMaker model Args: instance_type (str): The EC2 instance type to deploy this Model to. For example, 'ml.p2.xlarge' model (sagemaker.model.FrameworkModel): The SageMaker model to export Airflow config from role (str): The ``ExecutionRoleArn`` IAM Role AR...
src/sagemaker/workflow/airflow.py
def model_config(instance_type, model, role=None, image=None): """Export Airflow model config from a SageMaker model Args: instance_type (str): The EC2 instance type to deploy this Model to. For example, 'ml.p2.xlarge' model (sagemaker.model.FrameworkModel): The SageMaker model to export Airflo...
def model_config(instance_type, model, role=None, image=None): """Export Airflow model config from a SageMaker model Args: instance_type (str): The EC2 instance type to deploy this Model to. For example, 'ml.p2.xlarge' model (sagemaker.model.FrameworkModel): The SageMaker model to export Airflo...
[ "Export", "Airflow", "model", "config", "from", "a", "SageMaker", "model" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L384-L421
[ "def", "model_config", "(", "instance_type", ",", "model", ",", "role", "=", "None", ",", "image", "=", "None", ")", ":", "s3_operations", "=", "{", "}", "model", ".", "image", "=", "image", "or", "model", ".", "image", "if", "isinstance", "(", "model"...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
model_config_from_estimator
Export Airflow model config from a SageMaker estimator Args: instance_type (str): The EC2 instance type to deploy this Model to. For example, 'ml.p2.xlarge' estimator (sagemaker.model.EstimatorBase): The SageMaker estimator to export Airflow config from. It has to be an estimator associ...
src/sagemaker/workflow/airflow.py
def model_config_from_estimator(instance_type, estimator, task_id, task_type, role=None, image=None, name=None, model_server_workers=None, vpc_config_override=vpc_utils.VPC_CONFIG_DEFAULT): """Export Airflow model config from a SageMaker estimator Args: instance_type (st...
def model_config_from_estimator(instance_type, estimator, task_id, task_type, role=None, image=None, name=None, model_server_workers=None, vpc_config_override=vpc_utils.VPC_CONFIG_DEFAULT): """Export Airflow model config from a SageMaker estimator Args: instance_type (st...
[ "Export", "Airflow", "model", "config", "from", "a", "SageMaker", "estimator" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L424-L465
[ "def", "model_config_from_estimator", "(", "instance_type", ",", "estimator", ",", "task_id", ",", "task_type", ",", "role", "=", "None", ",", "image", "=", "None", ",", "name", "=", "None", ",", "model_server_workers", "=", "None", ",", "vpc_config_override", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
transform_config
Export Airflow transform config from a SageMaker transformer Args: transformer (sagemaker.transformer.Transformer): The SageMaker transformer to export Airflow config from. data (str): Input data location in S3. data_type (str): What the S3 location defines (default: 'S3Prefix')...
src/sagemaker/workflow/airflow.py
def transform_config(transformer, data, data_type='S3Prefix', content_type=None, compression_type=None, split_type=None, job_name=None): """Export Airflow transform config from a SageMaker transformer Args: transformer (sagemaker.transformer.Transformer): The SageMaker transformer ...
def transform_config(transformer, data, data_type='S3Prefix', content_type=None, compression_type=None, split_type=None, job_name=None): """Export Airflow transform config from a SageMaker transformer Args: transformer (sagemaker.transformer.Transformer): The SageMaker transformer ...
[ "Export", "Airflow", "transform", "config", "from", "a", "SageMaker", "transformer" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L468-L530
[ "def", "transform_config", "(", "transformer", ",", "data", ",", "data_type", "=", "'S3Prefix'", ",", "content_type", "=", "None", ",", "compression_type", "=", "None", ",", "split_type", "=", "None", ",", "job_name", "=", "None", ")", ":", "if", "job_name",...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
transform_config_from_estimator
Export Airflow transform config from a SageMaker estimator Args: estimator (sagemaker.model.EstimatorBase): The SageMaker estimator to export Airflow config from. It has to be an estimator associated with a training job. task_id (str): The task id of any airflow.contrib.operators.SageMa...
src/sagemaker/workflow/airflow.py
def transform_config_from_estimator(estimator, task_id, task_type, instance_count, instance_type, data, data_type='S3Prefix', content_type=None, compression_type=None, split_type=None, job_name=None, model_name=None, strategy=None, assemble_with=No...
def transform_config_from_estimator(estimator, task_id, task_type, instance_count, instance_type, data, data_type='S3Prefix', content_type=None, compression_type=None, split_type=None, job_name=None, model_name=None, strategy=None, assemble_with=No...
[ "Export", "Airflow", "transform", "config", "from", "a", "SageMaker", "estimator" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L533-L617
[ "def", "transform_config_from_estimator", "(", "estimator", ",", "task_id", ",", "task_type", ",", "instance_count", ",", "instance_type", ",", "data", ",", "data_type", "=", "'S3Prefix'", ",", "content_type", "=", "None", ",", "compression_type", "=", "None", ","...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
deploy_config
Export Airflow deploy config from a SageMaker model Args: model (sagemaker.model.Model): The SageMaker model to export the Airflow config from. instance_type (str): The EC2 instance type to deploy this Model to. For example, 'ml.p2.xlarge'. initial_instance_count (int): The initial number o...
src/sagemaker/workflow/airflow.py
def deploy_config(model, initial_instance_count, instance_type, endpoint_name=None, tags=None): """Export Airflow deploy config from a SageMaker model Args: model (sagemaker.model.Model): The SageMaker model to export the Airflow config from. instance_type (str): The EC2 instance type to deploy...
def deploy_config(model, initial_instance_count, instance_type, endpoint_name=None, tags=None): """Export Airflow deploy config from a SageMaker model Args: model (sagemaker.model.Model): The SageMaker model to export the Airflow config from. instance_type (str): The EC2 instance type to deploy...
[ "Export", "Airflow", "deploy", "config", "from", "a", "SageMaker", "model" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L620-L662
[ "def", "deploy_config", "(", "model", ",", "initial_instance_count", ",", "instance_type", ",", "endpoint_name", "=", "None", ",", "tags", "=", "None", ")", ":", "model_base_config", "=", "model_config", "(", "instance_type", ",", "model", ")", "production_variant...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
deploy_config_from_estimator
Export Airflow deploy config from a SageMaker estimator Args: estimator (sagemaker.model.EstimatorBase): The SageMaker estimator to export Airflow config from. It has to be an estimator associated with a training job. task_id (str): The task id of any airflow.contrib.operators.SageMaker...
src/sagemaker/workflow/airflow.py
def deploy_config_from_estimator(estimator, task_id, task_type, initial_instance_count, instance_type, model_name=None, endpoint_name=None, tags=None, **kwargs): """Export Airflow deploy config from a SageMaker estimator Args: estimator (sagemaker.model.EstimatorBase): ...
def deploy_config_from_estimator(estimator, task_id, task_type, initial_instance_count, instance_type, model_name=None, endpoint_name=None, tags=None, **kwargs): """Export Airflow deploy config from a SageMaker estimator Args: estimator (sagemaker.model.EstimatorBase): ...
[ "Export", "Airflow", "deploy", "config", "from", "a", "SageMaker", "estimator" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/workflow/airflow.py#L665-L696
[ "def", "deploy_config_from_estimator", "(", "estimator", ",", "task_id", ",", "task_type", ",", "initial_instance_count", ",", "instance_type", ",", "model_name", "=", "None", ",", "endpoint_name", "=", "None", ",", "tags", "=", "None", ",", "*", "*", "kwargs", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
AlgorithmEstimator.create_model
Create a model to deploy. The serializer, deserializer, content_type, and accept arguments are only used to define a default RealTimePredictor. They are ignored if an explicit predictor class is passed in. Other arguments are passed through to the Model class. Args: role (s...
src/sagemaker/algorithm.py
def create_model( self, role=None, predictor_cls=None, serializer=None, deserializer=None, content_type=None, accept=None, vpc_config_override=vpc_utils.VPC_CONFIG_DEFAULT, **kwargs ): """Create a model to deploy. The serialize...
def create_model( self, role=None, predictor_cls=None, serializer=None, deserializer=None, content_type=None, accept=None, vpc_config_override=vpc_utils.VPC_CONFIG_DEFAULT, **kwargs ): """Create a model to deploy. The serialize...
[ "Create", "a", "model", "to", "deploy", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/algorithm.py#L204-L259
[ "def", "create_model", "(", "self", ",", "role", "=", "None", ",", "predictor_cls", "=", "None", ",", "serializer", "=", "None", ",", "deserializer", "=", "None", ",", "content_type", "=", "None", ",", "accept", "=", "None", ",", "vpc_config_override", "="...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
AlgorithmEstimator.transformer
Return a ``Transformer`` that uses a SageMaker Model based on the training job. It reuses the SageMaker Session and base job name used by the Estimator. Args: instance_count (int): Number of EC2 instances to use. instance_type (str): Type of EC2 instance to use, for example, 'ml...
src/sagemaker/algorithm.py
def transformer(self, instance_count, instance_type, strategy=None, assemble_with=None, output_path=None, output_kms_key=None, accept=None, env=None, max_concurrent_transforms=None, max_payload=None, tags=None, role=None, volume_kms_key=None): """Return a ``Transformer`` ...
def transformer(self, instance_count, instance_type, strategy=None, assemble_with=None, output_path=None, output_kms_key=None, accept=None, env=None, max_concurrent_transforms=None, max_payload=None, tags=None, role=None, volume_kms_key=None): """Return a ``Transformer`` ...
[ "Return", "a", "Transformer", "that", "uses", "a", "SageMaker", "Model", "based", "on", "the", "training", "job", ".", "It", "reuses", "the", "SageMaker", "Session", "and", "base", "job", "name", "used", "by", "the", "Estimator", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/algorithm.py#L261-L311
[ "def", "transformer", "(", "self", ",", "instance_count", ",", "instance_type", ",", "strategy", "=", "None", ",", "assemble_with", "=", "None", ",", "output_path", "=", "None", ",", "output_kms_key", "=", "None", ",", "accept", "=", "None", ",", "env", "=...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
EstimatorBase._prepare_for_training
Set any values in the estimator that need to be set before training. Args: * job_name (str): Name of the training job to be created. If not specified, one is generated, using the base name given to the constructor if applicable.
src/sagemaker/estimator.py
def _prepare_for_training(self, job_name=None): """Set any values in the estimator that need to be set before training. Args: * job_name (str): Name of the training job to be created. If not specified, one is generated, using the base name given to the constructor if applica...
def _prepare_for_training(self, job_name=None): """Set any values in the estimator that need to be set before training. Args: * job_name (str): Name of the training job to be created. If not specified, one is generated, using the base name given to the constructor if applica...
[ "Set", "any", "values", "in", "the", "estimator", "that", "need", "to", "be", "set", "before", "training", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L175-L202
[ "def", "_prepare_for_training", "(", "self", ",", "job_name", "=", "None", ")", ":", "if", "job_name", "is", "not", "None", ":", "self", ".", "_current_job_name", "=", "job_name", "else", ":", "# honor supplied base_job_name or generate it", "if", "self", ".", "...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
EstimatorBase.fit
Train a model using the input training dataset. The API calls the Amazon SageMaker CreateTrainingJob API to start model training. The API uses configuration you provided to create the estimator and the specified input training data to send the CreatingTrainingJob request to Amazon SageMaker. ...
src/sagemaker/estimator.py
def fit(self, inputs=None, wait=True, logs=True, job_name=None): """Train a model using the input training dataset. The API calls the Amazon SageMaker CreateTrainingJob API to start model training. The API uses configuration you provided to create the estimator and the specified input t...
def fit(self, inputs=None, wait=True, logs=True, job_name=None): """Train a model using the input training dataset. The API calls the Amazon SageMaker CreateTrainingJob API to start model training. The API uses configuration you provided to create the estimator and the specified input t...
[ "Train", "a", "model", "using", "the", "input", "training", "dataset", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L204-L236
[ "def", "fit", "(", "self", ",", "inputs", "=", "None", ",", "wait", "=", "True", ",", "logs", "=", "True", ",", "job_name", "=", "None", ")", ":", "self", ".", "_prepare_for_training", "(", "job_name", "=", "job_name", ")", "self", ".", "latest_trainin...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
EstimatorBase.compile_model
Compile a Neo model using the input model. Args: target_instance_family (str): Identifies the device that you want to run your model after compilation, for example: ml_c5. Allowed strings are: ml_c5, ml_m5, ml_c4, ml_m4, jetsontx1, jetsontx2, ml_p2, ml_p3, deeplens, ...
src/sagemaker/estimator.py
def compile_model(self, target_instance_family, input_shape, output_path, framework=None, framework_version=None, compile_max_run=5 * 60, tags=None, **kwargs): """Compile a Neo model using the input model. Args: target_instance_family (str): Identifies the device that ...
def compile_model(self, target_instance_family, input_shape, output_path, framework=None, framework_version=None, compile_max_run=5 * 60, tags=None, **kwargs): """Compile a Neo model using the input model. Args: target_instance_family (str): Identifies the device that ...
[ "Compile", "a", "Neo", "model", "using", "the", "input", "model", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L242-L287
[ "def", "compile_model", "(", "self", ",", "target_instance_family", ",", "input_shape", ",", "output_path", ",", "framework", "=", "None", ",", "framework_version", "=", "None", ",", "compile_max_run", "=", "5", "*", "60", ",", "tags", "=", "None", ",", "*",...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
EstimatorBase.attach
Attach to an existing training job. Create an Estimator bound to an existing training job, each subclass is responsible to implement ``_prepare_init_params_from_job_description()`` as this method delegates the actual conversion of a training job description to the arguments that the class const...
src/sagemaker/estimator.py
def attach(cls, training_job_name, sagemaker_session=None, model_channel_name='model'): """Attach to an existing training job. Create an Estimator bound to an existing training job, each subclass is responsible to implement ``_prepare_init_params_from_job_description()`` as this method delegate...
def attach(cls, training_job_name, sagemaker_session=None, model_channel_name='model'): """Attach to an existing training job. Create an Estimator bound to an existing training job, each subclass is responsible to implement ``_prepare_init_params_from_job_description()`` as this method delegate...
[ "Attach", "to", "an", "existing", "training", "job", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L290-L328
[ "def", "attach", "(", "cls", ",", "training_job_name", ",", "sagemaker_session", "=", "None", ",", "model_channel_name", "=", "'model'", ")", ":", "sagemaker_session", "=", "sagemaker_session", "or", "Session", "(", ")", "job_details", "=", "sagemaker_session", "....
a9e724c7d3f5572b68c3903548c792a59d99799a
train
EstimatorBase.deploy
Deploy the trained model to an Amazon SageMaker endpoint and return a ``sagemaker.RealTimePredictor`` object. More information: http://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works-training.html Args: initial_instance_count (int): Minimum number of EC2 instances to deploy to...
src/sagemaker/estimator.py
def deploy(self, initial_instance_count, instance_type, accelerator_type=None, endpoint_name=None, use_compiled_model=False, update_endpoint=False, **kwargs): """Deploy the trained model to an Amazon SageMaker endpoint and return a ``sagemaker.RealTimePredictor`` object. More information...
def deploy(self, initial_instance_count, instance_type, accelerator_type=None, endpoint_name=None, use_compiled_model=False, update_endpoint=False, **kwargs): """Deploy the trained model to an Amazon SageMaker endpoint and return a ``sagemaker.RealTimePredictor`` object. More information...
[ "Deploy", "the", "trained", "model", "to", "an", "Amazon", "SageMaker", "endpoint", "and", "return", "a", "sagemaker", ".", "RealTimePredictor", "object", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L330-L381
[ "def", "deploy", "(", "self", ",", "initial_instance_count", ",", "instance_type", ",", "accelerator_type", "=", "None", ",", "endpoint_name", "=", "None", ",", "use_compiled_model", "=", "False", ",", "update_endpoint", "=", "False", ",", "*", "*", "kwargs", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
EstimatorBase.model_data
str: The model location in S3. Only set if Estimator has been ``fit()``.
src/sagemaker/estimator.py
def model_data(self): """str: The model location in S3. Only set if Estimator has been ``fit()``.""" if self.latest_training_job is not None: model_uri = self.sagemaker_session.sagemaker_client.describe_training_job( TrainingJobName=self.latest_training_job.name)['ModelArtifa...
def model_data(self): """str: The model location in S3. Only set if Estimator has been ``fit()``.""" if self.latest_training_job is not None: model_uri = self.sagemaker_session.sagemaker_client.describe_training_job( TrainingJobName=self.latest_training_job.name)['ModelArtifa...
[ "str", ":", "The", "model", "location", "in", "S3", ".", "Only", "set", "if", "Estimator", "has", "been", "fit", "()", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L384-L394
[ "def", "model_data", "(", "self", ")", ":", "if", "self", ".", "latest_training_job", "is", "not", "None", ":", "model_uri", "=", "self", ".", "sagemaker_session", ".", "sagemaker_client", ".", "describe_training_job", "(", "TrainingJobName", "=", "self", ".", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
EstimatorBase._prepare_init_params_from_job_description
Convert the job description to init params that can be handled by the class constructor Args: job_details: the returned job details from a describe_training_job API call. model_channel_name (str): Name of the channel where pre-trained model data will be downloaded. Returns: ...
src/sagemaker/estimator.py
def _prepare_init_params_from_job_description(cls, job_details, model_channel_name=None): """Convert the job description to init params that can be handled by the class constructor Args: job_details: the returned job details from a describe_training_job API call. model_channel_n...
def _prepare_init_params_from_job_description(cls, job_details, model_channel_name=None): """Convert the job description to init params that can be handled by the class constructor Args: job_details: the returned job details from a describe_training_job API call. model_channel_n...
[ "Convert", "the", "job", "description", "to", "init", "params", "that", "can", "be", "handled", "by", "the", "class", "constructor" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L408-L462
[ "def", "_prepare_init_params_from_job_description", "(", "cls", ",", "job_details", ",", "model_channel_name", "=", "None", ")", ":", "init_params", "=", "dict", "(", ")", "init_params", "[", "'role'", "]", "=", "job_details", "[", "'RoleArn'", "]", "init_params",...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
EstimatorBase.delete_endpoint
Delete an Amazon SageMaker ``Endpoint``. Raises: ValueError: If the endpoint does not exist.
src/sagemaker/estimator.py
def delete_endpoint(self): """Delete an Amazon SageMaker ``Endpoint``. Raises: ValueError: If the endpoint does not exist. """ self._ensure_latest_training_job(error_message='Endpoint was not created yet') self.sagemaker_session.delete_endpoint(self.latest_training_j...
def delete_endpoint(self): """Delete an Amazon SageMaker ``Endpoint``. Raises: ValueError: If the endpoint does not exist. """ self._ensure_latest_training_job(error_message='Endpoint was not created yet') self.sagemaker_session.delete_endpoint(self.latest_training_j...
[ "Delete", "an", "Amazon", "SageMaker", "Endpoint", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L464-L471
[ "def", "delete_endpoint", "(", "self", ")", ":", "self", ".", "_ensure_latest_training_job", "(", "error_message", "=", "'Endpoint was not created yet'", ")", "self", ".", "sagemaker_session", ".", "delete_endpoint", "(", "self", ".", "latest_training_job", ".", "name...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
EstimatorBase.transformer
Return a ``Transformer`` that uses a SageMaker Model based on the training job. It reuses the SageMaker Session and base job name used by the Estimator. Args: instance_count (int): Number of EC2 instances to use. instance_type (str): Type of EC2 instance to use, for example, 'ml...
src/sagemaker/estimator.py
def transformer(self, instance_count, instance_type, strategy=None, assemble_with=None, output_path=None, output_kms_key=None, accept=None, env=None, max_concurrent_transforms=None, max_payload=None, tags=None, role=None, volume_kms_key=None): """Return a ``Transformer`` ...
def transformer(self, instance_count, instance_type, strategy=None, assemble_with=None, output_path=None, output_kms_key=None, accept=None, env=None, max_concurrent_transforms=None, max_payload=None, tags=None, role=None, volume_kms_key=None): """Return a ``Transformer`` ...
[ "Return", "a", "Transformer", "that", "uses", "a", "SageMaker", "Model", "based", "on", "the", "training", "job", ".", "It", "reuses", "the", "SageMaker", "Session", "and", "base", "job", "name", "used", "by", "the", "Estimator", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L473-L513
[ "def", "transformer", "(", "self", ",", "instance_count", ",", "instance_type", ",", "strategy", "=", "None", ",", "assemble_with", "=", "None", ",", "output_path", "=", "None", ",", "output_kms_key", "=", "None", ",", "accept", "=", "None", ",", "env", "=...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
EstimatorBase.training_job_analytics
Return a ``TrainingJobAnalytics`` object for the current training job.
src/sagemaker/estimator.py
def training_job_analytics(self): """Return a ``TrainingJobAnalytics`` object for the current training job. """ if self._current_job_name is None: raise ValueError('Estimator is not associated with a TrainingJob') return TrainingJobAnalytics(self._current_job_name, sagemaker_...
def training_job_analytics(self): """Return a ``TrainingJobAnalytics`` object for the current training job. """ if self._current_job_name is None: raise ValueError('Estimator is not associated with a TrainingJob') return TrainingJobAnalytics(self._current_job_name, sagemaker_...
[ "Return", "a", "TrainingJobAnalytics", "object", "for", "the", "current", "training", "job", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L516-L521
[ "def", "training_job_analytics", "(", "self", ")", ":", "if", "self", ".", "_current_job_name", "is", "None", ":", "raise", "ValueError", "(", "'Estimator is not associated with a TrainingJob'", ")", "return", "TrainingJobAnalytics", "(", "self", ".", "_current_job_name...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
EstimatorBase.get_vpc_config
Returns VpcConfig dict either from this Estimator's subnets and security groups, or else validate and return an optional override value.
src/sagemaker/estimator.py
def get_vpc_config(self, vpc_config_override=vpc_utils.VPC_CONFIG_DEFAULT): """ Returns VpcConfig dict either from this Estimator's subnets and security groups, or else validate and return an optional override value. """ if vpc_config_override is vpc_utils.VPC_CONFIG_DEFAULT: ...
def get_vpc_config(self, vpc_config_override=vpc_utils.VPC_CONFIG_DEFAULT): """ Returns VpcConfig dict either from this Estimator's subnets and security groups, or else validate and return an optional override value. """ if vpc_config_override is vpc_utils.VPC_CONFIG_DEFAULT: ...
[ "Returns", "VpcConfig", "dict", "either", "from", "this", "Estimator", "s", "subnets", "and", "security", "groups", "or", "else", "validate", "and", "return", "an", "optional", "override", "value", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L523-L531
[ "def", "get_vpc_config", "(", "self", ",", "vpc_config_override", "=", "vpc_utils", ".", "VPC_CONFIG_DEFAULT", ")", ":", "if", "vpc_config_override", "is", "vpc_utils", ".", "VPC_CONFIG_DEFAULT", ":", "return", "vpc_utils", ".", "to_dict", "(", "self", ".", "subne...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
_TrainingJob.start_new
Create a new Amazon SageMaker training job from the estimator. Args: estimator (sagemaker.estimator.EstimatorBase): Estimator object created by the user. inputs (str): Parameters used when called :meth:`~sagemaker.estimator.EstimatorBase.fit`. Returns: sagemaker.es...
src/sagemaker/estimator.py
def start_new(cls, estimator, inputs): """Create a new Amazon SageMaker training job from the estimator. Args: estimator (sagemaker.estimator.EstimatorBase): Estimator object created by the user. inputs (str): Parameters used when called :meth:`~sagemaker.estimator.EstimatorBas...
def start_new(cls, estimator, inputs): """Create a new Amazon SageMaker training job from the estimator. Args: estimator (sagemaker.estimator.EstimatorBase): Estimator object created by the user. inputs (str): Parameters used when called :meth:`~sagemaker.estimator.EstimatorBas...
[ "Create", "a", "new", "Amazon", "SageMaker", "training", "job", "from", "the", "estimator", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L540-L585
[ "def", "start_new", "(", "cls", ",", "estimator", ",", "inputs", ")", ":", "local_mode", "=", "estimator", ".", "sagemaker_session", ".", "local_mode", "model_uri", "=", "estimator", ".", "model_uri", "# Allow file:// input only in local mode", "if", "cls", ".", "...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Estimator.create_model
Create a model to deploy. Args: role (str): The ``ExecutionRoleArn`` IAM Role ARN for the ``Model``, which is also used during transform jobs. If not specified, the role from the Estimator will be used. image (str): An container image to use for deploying the model. Defa...
src/sagemaker/estimator.py
def create_model(self, role=None, image=None, predictor_cls=None, serializer=None, deserializer=None, content_type=None, accept=None, vpc_config_override=vpc_utils.VPC_CONFIG_DEFAULT, **kwargs): """ Create a model to deploy. Args: role (str): The ``ExecutionRole...
def create_model(self, role=None, image=None, predictor_cls=None, serializer=None, deserializer=None, content_type=None, accept=None, vpc_config_override=vpc_utils.VPC_CONFIG_DEFAULT, **kwargs): """ Create a model to deploy. Args: role (str): The ``ExecutionRole...
[ "Create", "a", "model", "to", "deploy", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L695-L732
[ "def", "create_model", "(", "self", ",", "role", "=", "None", ",", "image", "=", "None", ",", "predictor_cls", "=", "None", ",", "serializer", "=", "None", ",", "deserializer", "=", "None", ",", "content_type", "=", "None", ",", "accept", "=", "None", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Estimator._prepare_init_params_from_job_description
Convert the job description to init params that can be handled by the class constructor Args: job_details: the returned job details from a describe_training_job API call. model_channel_name (str): Name of the channel where pre-trained model data will be downloaded Returns: ...
src/sagemaker/estimator.py
def _prepare_init_params_from_job_description(cls, job_details, model_channel_name=None): """Convert the job description to init params that can be handled by the class constructor Args: job_details: the returned job details from a describe_training_job API call. model_channel_n...
def _prepare_init_params_from_job_description(cls, job_details, model_channel_name=None): """Convert the job description to init params that can be handled by the class constructor Args: job_details: the returned job details from a describe_training_job API call. model_channel_n...
[ "Convert", "the", "job", "description", "to", "init", "params", "that", "can", "be", "handled", "by", "the", "class", "constructor" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L735-L749
[ "def", "_prepare_init_params_from_job_description", "(", "cls", ",", "job_details", ",", "model_channel_name", "=", "None", ")", ":", "init_params", "=", "super", "(", "Estimator", ",", "cls", ")", ".", "_prepare_init_params_from_job_description", "(", "job_details", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Framework._prepare_for_training
Set hyperparameters needed for training. This method will also validate ``source_dir``. Args: * job_name (str): Name of the training job to be created. If not specified, one is generated, using the base name given to the constructor if applicable.
src/sagemaker/estimator.py
def _prepare_for_training(self, job_name=None): """Set hyperparameters needed for training. This method will also validate ``source_dir``. Args: * job_name (str): Name of the training job to be created. If not specified, one is generated, using the base name given to the con...
def _prepare_for_training(self, job_name=None): """Set hyperparameters needed for training. This method will also validate ``source_dir``. Args: * job_name (str): Name of the training job to be created. If not specified, one is generated, using the base name given to the con...
[ "Set", "hyperparameters", "needed", "for", "training", ".", "This", "method", "will", "also", "validate", "source_dir", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L824-L860
[ "def", "_prepare_for_training", "(", "self", ",", "job_name", "=", "None", ")", ":", "super", "(", "Framework", ",", "self", ")", ".", "_prepare_for_training", "(", "job_name", "=", "job_name", ")", "# validate source dir will raise a ValueError if there is something wr...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Framework._stage_user_code_in_s3
Upload the user training script to s3 and return the location. Returns: s3 uri
src/sagemaker/estimator.py
def _stage_user_code_in_s3(self): """Upload the user training script to s3 and return the location. Returns: s3 uri """ local_mode = self.output_path.startswith('file://') if self.code_location is None and local_mode: code_bucket = self.sagemaker_session.default_bu...
def _stage_user_code_in_s3(self): """Upload the user training script to s3 and return the location. Returns: s3 uri """ local_mode = self.output_path.startswith('file://') if self.code_location is None and local_mode: code_bucket = self.sagemaker_session.default_bu...
[ "Upload", "the", "user", "training", "script", "to", "s3", "and", "return", "the", "location", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L862-L892
[ "def", "_stage_user_code_in_s3", "(", "self", ")", ":", "local_mode", "=", "self", ".", "output_path", ".", "startswith", "(", "'file://'", ")", "if", "self", ".", "code_location", "is", "None", "and", "local_mode", ":", "code_bucket", "=", "self", ".", "sag...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Framework._model_source_dir
Get the appropriate value to pass as source_dir to model constructor on deploying Returns: str: Either a local or an S3 path pointing to the source_dir to be used for code by the model to be deployed
src/sagemaker/estimator.py
def _model_source_dir(self): """Get the appropriate value to pass as source_dir to model constructor on deploying Returns: str: Either a local or an S3 path pointing to the source_dir to be used for code by the model to be deployed """ return self.source_dir if self.sagemake...
def _model_source_dir(self): """Get the appropriate value to pass as source_dir to model constructor on deploying Returns: str: Either a local or an S3 path pointing to the source_dir to be used for code by the model to be deployed """ return self.source_dir if self.sagemake...
[ "Get", "the", "appropriate", "value", "to", "pass", "as", "source_dir", "to", "model", "constructor", "on", "deploying" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L894-L900
[ "def", "_model_source_dir", "(", "self", ")", ":", "return", "self", ".", "source_dir", "if", "self", ".", "sagemaker_session", ".", "local_mode", "else", "self", ".", "uploaded_code", ".", "s3_prefix" ]
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Framework._prepare_init_params_from_job_description
Convert the job description to init params that can be handled by the class constructor Args: job_details: the returned job details from a describe_training_job API call. model_channel_name (str): Name of the channel where pre-trained model data will be downloaded Returns: ...
src/sagemaker/estimator.py
def _prepare_init_params_from_job_description(cls, job_details, model_channel_name=None): """Convert the job description to init params that can be handled by the class constructor Args: job_details: the returned job details from a describe_training_job API call. model_channel_n...
def _prepare_init_params_from_job_description(cls, job_details, model_channel_name=None): """Convert the job description to init params that can be handled by the class constructor Args: job_details: the returned job details from a describe_training_job API call. model_channel_n...
[ "Convert", "the", "job", "description", "to", "init", "params", "that", "can", "be", "handled", "by", "the", "class", "constructor" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L914-L946
[ "def", "_prepare_init_params_from_job_description", "(", "cls", ",", "job_details", ",", "model_channel_name", "=", "None", ")", ":", "init_params", "=", "super", "(", "Framework", ",", "cls", ")", ".", "_prepare_init_params_from_job_description", "(", "job_details", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Framework.train_image
Return the Docker image to use for training. The :meth:`~sagemaker.estimator.EstimatorBase.fit` method, which does the model training, calls this method to find the image to use for model training. Returns: str: The URI of the Docker image.
src/sagemaker/estimator.py
def train_image(self): """Return the Docker image to use for training. The :meth:`~sagemaker.estimator.EstimatorBase.fit` method, which does the model training, calls this method to find the image to use for model training. Returns: str: The URI of the Docker image. ...
def train_image(self): """Return the Docker image to use for training. The :meth:`~sagemaker.estimator.EstimatorBase.fit` method, which does the model training, calls this method to find the image to use for model training. Returns: str: The URI of the Docker image. ...
[ "Return", "the", "Docker", "image", "to", "use", "for", "training", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L948-L964
[ "def", "train_image", "(", "self", ")", ":", "if", "self", ".", "image_name", ":", "return", "self", ".", "image_name", "else", ":", "return", "create_image_uri", "(", "self", ".", "sagemaker_session", ".", "boto_region_name", ",", "self", ".", "__framework_na...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Framework.attach
Attach to an existing training job. Create an Estimator bound to an existing training job, each subclass is responsible to implement ``_prepare_init_params_from_job_description()`` as this method delegates the actual conversion of a training job description to the arguments that the class const...
src/sagemaker/estimator.py
def attach(cls, training_job_name, sagemaker_session=None, model_channel_name='model'): """Attach to an existing training job. Create an Estimator bound to an existing training job, each subclass is responsible to implement ``_prepare_init_params_from_job_description()`` as this method delegate...
def attach(cls, training_job_name, sagemaker_session=None, model_channel_name='model'): """Attach to an existing training job. Create an Estimator bound to an existing training job, each subclass is responsible to implement ``_prepare_init_params_from_job_description()`` as this method delegate...
[ "Attach", "to", "an", "existing", "training", "job", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L967-L1002
[ "def", "attach", "(", "cls", ",", "training_job_name", ",", "sagemaker_session", "=", "None", ",", "model_channel_name", "=", "'model'", ")", ":", "estimator", "=", "super", "(", "Framework", ",", "cls", ")", ".", "attach", "(", "training_job_name", ",", "sa...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Framework.transformer
Return a ``Transformer`` that uses a SageMaker Model based on the training job. It reuses the SageMaker Session and base job name used by the Estimator. Args: instance_count (int): Number of EC2 instances to use. instance_type (str): Type of EC2 instance to use, for example, 'ml...
src/sagemaker/estimator.py
def transformer(self, instance_count, instance_type, strategy=None, assemble_with=None, output_path=None, output_kms_key=None, accept=None, env=None, max_concurrent_transforms=None, max_payload=None, tags=None, role=None, model_server_workers=None, volume_kms_key=None): "...
def transformer(self, instance_count, instance_type, strategy=None, assemble_with=None, output_path=None, output_kms_key=None, accept=None, env=None, max_concurrent_transforms=None, max_payload=None, tags=None, role=None, model_server_workers=None, volume_kms_key=None): "...
[ "Return", "a", "Transformer", "that", "uses", "a", "SageMaker", "Model", "based", "on", "the", "training", "job", ".", "It", "reuses", "the", "SageMaker", "Session", "and", "base", "job", "name", "used", "by", "the", "Estimator", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/estimator.py#L1018-L1070
[ "def", "transformer", "(", "self", ",", "instance_count", ",", "instance_type", ",", "strategy", "=", "None", ",", "assemble_with", "=", "None", ",", "output_path", "=", "None", ",", "output_kms_key", "=", "None", ",", "accept", "=", "None", ",", "env", "=...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Hyperparameter.serialize_all
Return all non-None ``hyperparameter`` values on ``obj`` as a ``dict[str,str].``
src/sagemaker/amazon/hyperparameter.py
def serialize_all(obj): """Return all non-None ``hyperparameter`` values on ``obj`` as a ``dict[str,str].``""" if '_hyperparameters' not in dir(obj): return {} return {k: str(v) for k, v in obj._hyperparameters.items() if v is not None}
def serialize_all(obj): """Return all non-None ``hyperparameter`` values on ``obj`` as a ``dict[str,str].``""" if '_hyperparameters' not in dir(obj): return {} return {k: str(v) for k, v in obj._hyperparameters.items() if v is not None}
[ "Return", "all", "non", "-", "None", "hyperparameter", "values", "on", "obj", "as", "a", "dict", "[", "str", "str", "]", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/amazon/hyperparameter.py#L66-L70
[ "def", "serialize_all", "(", "obj", ")", ":", "if", "'_hyperparameters'", "not", "in", "dir", "(", "obj", ")", ":", "return", "{", "}", "return", "{", "k", ":", "str", "(", "v", ")", "for", "k", ",", "v", "in", "obj", ".", "_hyperparameters", ".", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
_LocalTransformJob.start
Start the Local Transform Job Args: input_data (dict): Describes the dataset to be transformed and the location where it is stored. output_data (dict): Identifies the location where to save the results from the transform job transform_resources (dict): compute instances for ...
src/sagemaker/local/entities.py
def start(self, input_data, output_data, transform_resources, **kwargs): """Start the Local Transform Job Args: input_data (dict): Describes the dataset to be transformed and the location where it is stored. output_data (dict): Identifies the location where to save the results f...
def start(self, input_data, output_data, transform_resources, **kwargs): """Start the Local Transform Job Args: input_data (dict): Describes the dataset to be transformed and the location where it is stored. output_data (dict): Identifies the location where to save the results f...
[ "Start", "the", "Local", "Transform", "Job" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/local/entities.py#L111-L159
[ "def", "start", "(", "self", ",", "input_data", ",", "output_data", ",", "transform_resources", ",", "*", "*", "kwargs", ")", ":", "self", ".", "transform_resources", "=", "transform_resources", "self", ".", "input_data", "=", "input_data", "self", ".", "outpu...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
_LocalTransformJob.describe
Describe this _LocalTransformJob The response is a JSON-like dictionary that follows the response of the boto describe_transform_job() API. Returns: dict: description of this _LocalTransformJob
src/sagemaker/local/entities.py
def describe(self): """Describe this _LocalTransformJob The response is a JSON-like dictionary that follows the response of the boto describe_transform_job() API. Returns: dict: description of this _LocalTransformJob """ response = { 'TransformJo...
def describe(self): """Describe this _LocalTransformJob The response is a JSON-like dictionary that follows the response of the boto describe_transform_job() API. Returns: dict: description of this _LocalTransformJob """ response = { 'TransformJo...
[ "Describe", "this", "_LocalTransformJob" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/local/entities.py#L161-L191
[ "def", "describe", "(", "self", ")", ":", "response", "=", "{", "'TransformJobStatus'", ":", "self", ".", "state", ",", "'ModelName'", ":", "self", ".", "model_name", ",", "'TransformJobName'", ":", "self", ".", "name", ",", "'TransformJobArn'", ":", "_UNUSE...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
_LocalTransformJob._get_container_environment
Get all the Environment variables that will be passed to the container Certain input fields such as BatchStrategy have different values for the API vs the Environment variables, such as SingleRecord vs SINGLE_RECORD. This method also handles this conversion. Args: **kwargs: existin...
src/sagemaker/local/entities.py
def _get_container_environment(self, **kwargs): """Get all the Environment variables that will be passed to the container Certain input fields such as BatchStrategy have different values for the API vs the Environment variables, such as SingleRecord vs SINGLE_RECORD. This method also handles th...
def _get_container_environment(self, **kwargs): """Get all the Environment variables that will be passed to the container Certain input fields such as BatchStrategy have different values for the API vs the Environment variables, such as SingleRecord vs SINGLE_RECORD. This method also handles th...
[ "Get", "all", "the", "Environment", "variables", "that", "will", "be", "passed", "to", "the", "container" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/local/entities.py#L193-L230
[ "def", "_get_container_environment", "(", "self", ",", "*", "*", "kwargs", ")", ":", "environment", "=", "{", "}", "environment", ".", "update", "(", "self", ".", "primary_container", "[", "'Environment'", "]", ")", "environment", "[", "'SAGEMAKER_BATCH'", "]"...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
ParameterRange.as_tuning_range
Represent the parameter range as a dicionary suitable for a request to create an Amazon SageMaker hyperparameter tuning job. Args: name (str): The name of the hyperparameter. Returns: dict[str, str]: A dictionary that contains the name and values of the hyperparameter.
src/sagemaker/parameter.py
def as_tuning_range(self, name): """Represent the parameter range as a dicionary suitable for a request to create an Amazon SageMaker hyperparameter tuning job. Args: name (str): The name of the hyperparameter. Returns: dict[str, str]: A dictionary that contains...
def as_tuning_range(self, name): """Represent the parameter range as a dicionary suitable for a request to create an Amazon SageMaker hyperparameter tuning job. Args: name (str): The name of the hyperparameter. Returns: dict[str, str]: A dictionary that contains...
[ "Represent", "the", "parameter", "range", "as", "a", "dicionary", "suitable", "for", "a", "request", "to", "create", "an", "Amazon", "SageMaker", "hyperparameter", "tuning", "job", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/parameter.py#L56-L69
[ "def", "as_tuning_range", "(", "self", ",", "name", ")", ":", "return", "{", "'Name'", ":", "name", ",", "'MinValue'", ":", "to_str", "(", "self", ".", "min_value", ")", ",", "'MaxValue'", ":", "to_str", "(", "self", ".", "max_value", ")", ",", "'Scali...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
CategoricalParameter.as_json_range
Represent the parameter range as a dictionary suitable for a request to create an Amazon SageMaker hyperparameter tuning job using one of the deep learning frameworks. The deep learning framework images require that hyperparameters be serialized as JSON. Args: name (str): The name ...
src/sagemaker/parameter.py
def as_json_range(self, name): """Represent the parameter range as a dictionary suitable for a request to create an Amazon SageMaker hyperparameter tuning job using one of the deep learning frameworks. The deep learning framework images require that hyperparameters be serialized as JSON. ...
def as_json_range(self, name): """Represent the parameter range as a dictionary suitable for a request to create an Amazon SageMaker hyperparameter tuning job using one of the deep learning frameworks. The deep learning framework images require that hyperparameters be serialized as JSON. ...
[ "Represent", "the", "parameter", "range", "as", "a", "dictionary", "suitable", "for", "a", "request", "to", "create", "an", "Amazon", "SageMaker", "hyperparameter", "tuning", "job", "using", "one", "of", "the", "deep", "learning", "frameworks", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/parameter.py#L114-L127
[ "def", "as_json_range", "(", "self", ",", "name", ")", ":", "return", "{", "'Name'", ":", "name", ",", "'Values'", ":", "[", "json", ".", "dumps", "(", "v", ")", "for", "v", "in", "self", ".", "values", "]", "}" ]
a9e724c7d3f5572b68c3903548c792a59d99799a
train
container_def
Create a definition for executing a container as part of a SageMaker model. Args: image (str): Docker image to run for this container. model_data_url (str): S3 URI of data required by this container, e.g. SageMaker training job model artifacts (default: None). env (dict[str, str...
src/sagemaker/session.py
def container_def(image, model_data_url=None, env=None): """Create a definition for executing a container as part of a SageMaker model. Args: image (str): Docker image to run for this container. model_data_url (str): S3 URI of data required by this container, e.g. SageMaker training...
def container_def(image, model_data_url=None, env=None): """Create a definition for executing a container as part of a SageMaker model. Args: image (str): Docker image to run for this container. model_data_url (str): S3 URI of data required by this container, e.g. SageMaker training...
[ "Create", "a", "definition", "for", "executing", "a", "container", "as", "part", "of", "a", "SageMaker", "model", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L1229-L1246
[ "def", "container_def", "(", "image", ",", "model_data_url", "=", "None", ",", "env", "=", "None", ")", ":", "if", "env", "is", "None", ":", "env", "=", "{", "}", "c_def", "=", "{", "'Image'", ":", "image", ",", "'Environment'", ":", "env", "}", "i...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
pipeline_container_def
Create a definition for executing a pipeline of containers as part of a SageMaker model. Args: models (list[sagemaker.Model]): this will be a list of ``sagemaker.Model`` objects in the order the inference should be invoked. instance_type (str): The EC2 instance type to deploy this Model to. ...
src/sagemaker/session.py
def pipeline_container_def(models, instance_type=None): """ Create a definition for executing a pipeline of containers as part of a SageMaker model. Args: models (list[sagemaker.Model]): this will be a list of ``sagemaker.Model`` objects in the order the inference should be invoked. ...
def pipeline_container_def(models, instance_type=None): """ Create a definition for executing a pipeline of containers as part of a SageMaker model. Args: models (list[sagemaker.Model]): this will be a list of ``sagemaker.Model`` objects in the order the inference should be invoked. ...
[ "Create", "a", "definition", "for", "executing", "a", "pipeline", "of", "containers", "as", "part", "of", "a", "SageMaker", "model", ".", "Args", ":", "models", "(", "list", "[", "sagemaker", ".", "Model", "]", ")", ":", "this", "will", "be", "a", "lis...
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L1249-L1263
[ "def", "pipeline_container_def", "(", "models", ",", "instance_type", "=", "None", ")", ":", "c_defs", "=", "[", "]", "# should contain list of container definitions in the same order customer passed", "for", "model", "in", "models", ":", "c_defs", ".", "append", "(", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
production_variant
Create a production variant description suitable for use in a ``ProductionVariant`` list as part of a ``CreateEndpointConfig`` request. Args: model_name (str): The name of the SageMaker model this production variant references. instance_type (str): The EC2 instance type for this production vari...
src/sagemaker/session.py
def production_variant(model_name, instance_type, initial_instance_count=1, variant_name='AllTraffic', initial_weight=1, accelerator_type=None): """Create a production variant description suitable for use in a ``ProductionVariant`` list as part of a ``CreateEndpointConfig`` request. ...
def production_variant(model_name, instance_type, initial_instance_count=1, variant_name='AllTraffic', initial_weight=1, accelerator_type=None): """Create a production variant description suitable for use in a ``ProductionVariant`` list as part of a ``CreateEndpointConfig`` request. ...
[ "Create", "a", "production", "variant", "description", "suitable", "for", "use", "in", "a", "ProductionVariant", "list", "as", "part", "of", "a", "CreateEndpointConfig", "request", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L1266-L1294
[ "def", "production_variant", "(", "model_name", ",", "instance_type", ",", "initial_instance_count", "=", "1", ",", "variant_name", "=", "'AllTraffic'", ",", "initial_weight", "=", "1", ",", "accelerator_type", "=", "None", ")", ":", "production_variant_configuration"...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
get_execution_role
Return the role ARN whose credentials are used to call the API. Throws an exception if Args: sagemaker_session(Session): Current sagemaker session Returns: (str): The role ARN
src/sagemaker/session.py
def get_execution_role(sagemaker_session=None): """Return the role ARN whose credentials are used to call the API. Throws an exception if Args: sagemaker_session(Session): Current sagemaker session Returns: (str): The role ARN """ if not sagemaker_session: sagemaker_sessi...
def get_execution_role(sagemaker_session=None): """Return the role ARN whose credentials are used to call the API. Throws an exception if Args: sagemaker_session(Session): Current sagemaker session Returns: (str): The role ARN """ if not sagemaker_session: sagemaker_sessi...
[ "Return", "the", "role", "ARN", "whose", "credentials", "are", "used", "to", "call", "the", "API", ".", "Throws", "an", "exception", "if", "Args", ":", "sagemaker_session", "(", "Session", ")", ":", "Current", "sagemaker", "session", "Returns", ":", "(", "...
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L1297-L1312
[ "def", "get_execution_role", "(", "sagemaker_session", "=", "None", ")", ":", "if", "not", "sagemaker_session", ":", "sagemaker_session", "=", "Session", "(", ")", "arn", "=", "sagemaker_session", ".", "get_caller_identity_arn", "(", ")", "if", "':role/'", "in", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session._initialize
Initialize this SageMaker Session. Creates or uses a boto_session, sagemaker_client and sagemaker_runtime_client. Sets the region_name.
src/sagemaker/session.py
def _initialize(self, boto_session, sagemaker_client, sagemaker_runtime_client): """Initialize this SageMaker Session. Creates or uses a boto_session, sagemaker_client and sagemaker_runtime_client. Sets the region_name. """ self.boto_session = boto_session or boto3.Session() ...
def _initialize(self, boto_session, sagemaker_client, sagemaker_runtime_client): """Initialize this SageMaker Session. Creates or uses a boto_session, sagemaker_client and sagemaker_runtime_client. Sets the region_name. """ self.boto_session = boto_session or boto3.Session() ...
[ "Initialize", "this", "SageMaker", "Session", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L89-L112
[ "def", "_initialize", "(", "self", ",", "boto_session", ",", "sagemaker_client", ",", "sagemaker_runtime_client", ")", ":", "self", ".", "boto_session", "=", "boto_session", "or", "boto3", ".", "Session", "(", ")", "self", ".", "_region_name", "=", "self", "."...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.upload_data
Upload local file or directory to S3. If a single file is specified for upload, the resulting S3 object key is ``{key_prefix}/{filename}`` (filename does not include the local path, if any specified). If a directory is specified for upload, the API uploads all content, recursively, pre...
src/sagemaker/session.py
def upload_data(self, path, bucket=None, key_prefix='data'): """Upload local file or directory to S3. If a single file is specified for upload, the resulting S3 object key is ``{key_prefix}/{filename}`` (filename does not include the local path, if any specified). If a directory is spe...
def upload_data(self, path, bucket=None, key_prefix='data'): """Upload local file or directory to S3. If a single file is specified for upload, the resulting S3 object key is ``{key_prefix}/{filename}`` (filename does not include the local path, if any specified). If a directory is spe...
[ "Upload", "local", "file", "or", "directory", "to", "S3", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L118-L169
[ "def", "upload_data", "(", "self", ",", "path", ",", "bucket", "=", "None", ",", "key_prefix", "=", "'data'", ")", ":", "# Generate a tuple for each file that we want to upload of the form (local_path, s3_key).", "files", "=", "[", "]", "key_suffix", "=", "None", "if"...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.default_bucket
Return the name of the default bucket to use in relevant Amazon SageMaker interactions. Returns: str: The name of the default bucket, which is of the form: ``sagemaker-{region}-{AWS account ID}``.
src/sagemaker/session.py
def default_bucket(self): """Return the name of the default bucket to use in relevant Amazon SageMaker interactions. Returns: str: The name of the default bucket, which is of the form: ``sagemaker-{region}-{AWS account ID}``. """ if self._default_bucket: return s...
def default_bucket(self): """Return the name of the default bucket to use in relevant Amazon SageMaker interactions. Returns: str: The name of the default bucket, which is of the form: ``sagemaker-{region}-{AWS account ID}``. """ if self._default_bucket: return s...
[ "Return", "the", "name", "of", "the", "default", "bucket", "to", "use", "in", "relevant", "Amazon", "SageMaker", "interactions", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L171-L211
[ "def", "default_bucket", "(", "self", ")", ":", "if", "self", ".", "_default_bucket", ":", "return", "self", ".", "_default_bucket", "account", "=", "self", ".", "boto_session", ".", "client", "(", "'sts'", ")", ".", "get_caller_identity", "(", ")", "[", "...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.train
Create an Amazon SageMaker training job. Args: input_mode (str): The input mode that the algorithm supports. Valid modes: * 'File' - Amazon SageMaker copies the training dataset from the S3 location to a directory in the Docker container. * 'Pipe...
src/sagemaker/session.py
def train(self, input_mode, input_config, role, job_name, output_config, # noqa: C901 resource_config, vpc_config, hyperparameters, stop_condition, tags, metric_definitions, enable_network_isolation=False, image=None, algorithm_arn=None, encrypt_inter_container_traffic=False):...
def train(self, input_mode, input_config, role, job_name, output_config, # noqa: C901 resource_config, vpc_config, hyperparameters, stop_condition, tags, metric_definitions, enable_network_isolation=False, image=None, algorithm_arn=None, encrypt_inter_container_traffic=False):...
[ "Create", "an", "Amazon", "SageMaker", "training", "job", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L213-L317
[ "def", "train", "(", "self", ",", "input_mode", ",", "input_config", ",", "role", ",", "job_name", ",", "output_config", ",", "# noqa: C901", "resource_config", ",", "vpc_config", ",", "hyperparameters", ",", "stop_condition", ",", "tags", ",", "metric_definitions...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.compile_model
Create an Amazon SageMaker Neo compilation job. Args: input_model_config (dict): the trained model and the Amazon S3 location where it is stored. output_model_config (dict): Identifies the Amazon S3 location where you want Amazon SageMaker Neo to save the results of comp...
src/sagemaker/session.py
def compile_model(self, input_model_config, output_model_config, role, job_name, stop_condition, tags): """Create an Amazon SageMaker Neo compilation job. Args: input_model_config (dict): the trained model and the Amazon S3 location where it is stored. outp...
def compile_model(self, input_model_config, output_model_config, role, job_name, stop_condition, tags): """Create an Amazon SageMaker Neo compilation job. Args: input_model_config (dict): the trained model and the Amazon S3 location where it is stored. outp...
[ "Create", "an", "Amazon", "SageMaker", "Neo", "compilation", "job", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L319-L351
[ "def", "compile_model", "(", "self", ",", "input_model_config", ",", "output_model_config", ",", "role", ",", "job_name", ",", "stop_condition", ",", "tags", ")", ":", "compilation_job_request", "=", "{", "'InputConfig'", ":", "input_model_config", ",", "'OutputConf...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.tune
Create an Amazon SageMaker hyperparameter tuning job Args: job_name (str): Name of the tuning job being created. strategy (str): Strategy to be used for hyperparameter estimations. objective_type (str): The type of the objective metric for evaluating training jobs. This valu...
src/sagemaker/session.py
def tune(self, job_name, strategy, objective_type, objective_metric_name, max_jobs, max_parallel_jobs, parameter_ranges, static_hyperparameters, input_mode, metric_definitions, role, input_config, output_config, resource_config, stop_condition, tags, warm_start_config...
def tune(self, job_name, strategy, objective_type, objective_metric_name, max_jobs, max_parallel_jobs, parameter_ranges, static_hyperparameters, input_mode, metric_definitions, role, input_config, output_config, resource_config, stop_condition, tags, warm_start_config...
[ "Create", "an", "Amazon", "SageMaker", "hyperparameter", "tuning", "job" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L353-L474
[ "def", "tune", "(", "self", ",", "job_name", ",", "strategy", ",", "objective_type", ",", "objective_metric_name", ",", "max_jobs", ",", "max_parallel_jobs", ",", "parameter_ranges", ",", "static_hyperparameters", ",", "input_mode", ",", "metric_definitions", ",", "...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.stop_tuning_job
Stop the Amazon SageMaker hyperparameter tuning job with the specified name. Args: name (str): Name of the Amazon SageMaker hyperparameter tuning job. Raises: ClientError: If an error occurs while trying to stop the hyperparameter tuning job.
src/sagemaker/session.py
def stop_tuning_job(self, name): """Stop the Amazon SageMaker hyperparameter tuning job with the specified name. Args: name (str): Name of the Amazon SageMaker hyperparameter tuning job. Raises: ClientError: If an error occurs while trying to stop the hyperparameter tun...
def stop_tuning_job(self, name): """Stop the Amazon SageMaker hyperparameter tuning job with the specified name. Args: name (str): Name of the Amazon SageMaker hyperparameter tuning job. Raises: ClientError: If an error occurs while trying to stop the hyperparameter tun...
[ "Stop", "the", "Amazon", "SageMaker", "hyperparameter", "tuning", "job", "with", "the", "specified", "name", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L476-L495
[ "def", "stop_tuning_job", "(", "self", ",", "name", ")", ":", "try", ":", "LOGGER", ".", "info", "(", "'Stopping tuning job: {}'", ".", "format", "(", "name", ")", ")", "self", ".", "sagemaker_client", ".", "stop_hyper_parameter_tuning_job", "(", "HyperParameter...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.transform
Create an Amazon SageMaker transform job. Args: job_name (str): Name of the transform job being created. model_name (str): Name of the SageMaker model being used for the transform job. strategy (str): The strategy used to decide how to batch records in a single request. ...
src/sagemaker/session.py
def transform(self, job_name, model_name, strategy, max_concurrent_transforms, max_payload, env, input_config, output_config, resource_config, tags): """Create an Amazon SageMaker transform job. Args: job_name (str): Name of the transform job being created. mod...
def transform(self, job_name, model_name, strategy, max_concurrent_transforms, max_payload, env, input_config, output_config, resource_config, tags): """Create an Amazon SageMaker transform job. Args: job_name (str): Name of the transform job being created. mod...
[ "Create", "an", "Amazon", "SageMaker", "transform", "job", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L497-L541
[ "def", "transform", "(", "self", ",", "job_name", ",", "model_name", ",", "strategy", ",", "max_concurrent_transforms", ",", "max_payload", ",", "env", ",", "input_config", ",", "output_config", ",", "resource_config", ",", "tags", ")", ":", "transform_request", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.create_model
Create an Amazon SageMaker ``Model``. Specify the S3 location of the model artifacts and Docker image containing the inference code. Amazon SageMaker uses this information to deploy the model in Amazon SageMaker. This method can also be used to create a Model for an Inference Pipeline if...
src/sagemaker/session.py
def create_model(self, name, role, container_defs, vpc_config=None, enable_network_isolation=False, primary_container=None, tags=None): """Create an Amazon SageMaker ``Model``. Specify the S3 location of the model artifacts and Docker image containing th...
def create_model(self, name, role, container_defs, vpc_config=None, enable_network_isolation=False, primary_container=None, tags=None): """Create an Amazon SageMaker ``Model``. Specify the S3 location of the model artifacts and Docker image containing th...
[ "Create", "an", "Amazon", "SageMaker", "Model", ".", "Specify", "the", "S3", "location", "of", "the", "model", "artifacts", "and", "Docker", "image", "containing", "the", "inference", "code", ".", "Amazon", "SageMaker", "uses", "this", "information", "to", "de...
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L543-L620
[ "def", "create_model", "(", "self", ",", "name", ",", "role", ",", "container_defs", ",", "vpc_config", "=", "None", ",", "enable_network_isolation", "=", "False", ",", "primary_container", "=", "None", ",", "tags", "=", "None", ")", ":", "if", "container_de...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.create_model_from_job
Create an Amazon SageMaker ``Model`` from a SageMaker Training Job. Args: training_job_name (str): The Amazon SageMaker Training Job name. name (str): The name of the SageMaker ``Model`` to create (default: None). If not specified, the training job name is used. ...
src/sagemaker/session.py
def create_model_from_job(self, training_job_name, name=None, role=None, primary_container_image=None, model_data_url=None, env=None, vpc_config_override=vpc_utils.VPC_CONFIG_DEFAULT): """Create an Amazon SageMaker ``Model`` from a SageMaker Training Job. Args: ...
def create_model_from_job(self, training_job_name, name=None, role=None, primary_container_image=None, model_data_url=None, env=None, vpc_config_override=vpc_utils.VPC_CONFIG_DEFAULT): """Create an Amazon SageMaker ``Model`` from a SageMaker Training Job. Args: ...
[ "Create", "an", "Amazon", "SageMaker", "Model", "from", "a", "SageMaker", "Training", "Job", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L622-L654
[ "def", "create_model_from_job", "(", "self", ",", "training_job_name", ",", "name", "=", "None", ",", "role", "=", "None", ",", "primary_container_image", "=", "None", ",", "model_data_url", "=", "None", ",", "env", "=", "None", ",", "vpc_config_override", "="...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.create_model_package_from_algorithm
Create a SageMaker Model Package from the results of training with an Algorithm Package Args: name (str): ModelPackage name description (str): Model Package description algorithm_arn (str): arn or name of the algorithm used for training. model_data (str): s3 URI ...
src/sagemaker/session.py
def create_model_package_from_algorithm(self, name, description, algorithm_arn, model_data): """Create a SageMaker Model Package from the results of training with an Algorithm Package Args: name (str): ModelPackage name description (str): Model Package description al...
def create_model_package_from_algorithm(self, name, description, algorithm_arn, model_data): """Create a SageMaker Model Package from the results of training with an Algorithm Package Args: name (str): ModelPackage name description (str): Model Package description al...
[ "Create", "a", "SageMaker", "Model", "Package", "from", "the", "results", "of", "training", "with", "an", "Algorithm", "Package" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L656-L690
[ "def", "create_model_package_from_algorithm", "(", "self", ",", "name", ",", "description", ",", "algorithm_arn", ",", "model_data", ")", ":", "request", "=", "{", "'ModelPackageName'", ":", "name", ",", "'ModelPackageDescription'", ":", "description", ",", "'Source...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.wait_for_model_package
Wait for an Amazon SageMaker endpoint deployment to complete. Args: endpoint (str): Name of the ``Endpoint`` to wait for. poll (int): Polling interval in seconds (default: 5). Returns: dict: Return value from the ``DescribeEndpoint`` API.
src/sagemaker/session.py
def wait_for_model_package(self, model_package_name, poll=5): """Wait for an Amazon SageMaker endpoint deployment to complete. Args: endpoint (str): Name of the ``Endpoint`` to wait for. poll (int): Polling interval in seconds (default: 5). Returns: dict: Re...
def wait_for_model_package(self, model_package_name, poll=5): """Wait for an Amazon SageMaker endpoint deployment to complete. Args: endpoint (str): Name of the ``Endpoint`` to wait for. poll (int): Polling interval in seconds (default: 5). Returns: dict: Re...
[ "Wait", "for", "an", "Amazon", "SageMaker", "endpoint", "deployment", "to", "complete", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L692-L710
[ "def", "wait_for_model_package", "(", "self", ",", "model_package_name", ",", "poll", "=", "5", ")", ":", "desc", "=", "_wait_until", "(", "lambda", ":", "_create_model_package_status", "(", "self", ".", "sagemaker_client", ",", "model_package_name", ")", ",", "...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.create_endpoint_config
Create an Amazon SageMaker endpoint configuration. The endpoint configuration identifies the Amazon SageMaker model (created using the ``CreateModel`` API) and the hardware configuration on which to deploy the model. Provide this endpoint configuration to the ``CreateEndpoint`` API, which then ...
src/sagemaker/session.py
def create_endpoint_config(self, name, model_name, initial_instance_count, instance_type, accelerator_type=None, tags=None, kms_key=None): """Create an Amazon SageMaker endpoint configuration. The endpoint configuration identifies the Amazon SageMaker model (created using...
def create_endpoint_config(self, name, model_name, initial_instance_count, instance_type, accelerator_type=None, tags=None, kms_key=None): """Create an Amazon SageMaker endpoint configuration. The endpoint configuration identifies the Amazon SageMaker model (created using...
[ "Create", "an", "Amazon", "SageMaker", "endpoint", "configuration", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L712-L756
[ "def", "create_endpoint_config", "(", "self", ",", "name", ",", "model_name", ",", "initial_instance_count", ",", "instance_type", ",", "accelerator_type", "=", "None", ",", "tags", "=", "None", ",", "kms_key", "=", "None", ")", ":", "LOGGER", ".", "info", "...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.create_endpoint
Create an Amazon SageMaker ``Endpoint`` according to the endpoint configuration specified in the request. Once the ``Endpoint`` is created, client applications can send requests to obtain inferences. The endpoint configuration is created using the ``CreateEndpointConfig`` API. Args: ...
src/sagemaker/session.py
def create_endpoint(self, endpoint_name, config_name, tags=None, wait=True): """Create an Amazon SageMaker ``Endpoint`` according to the endpoint configuration specified in the request. Once the ``Endpoint`` is created, client applications can send requests to obtain inferences. The endpoint co...
def create_endpoint(self, endpoint_name, config_name, tags=None, wait=True): """Create an Amazon SageMaker ``Endpoint`` according to the endpoint configuration specified in the request. Once the ``Endpoint`` is created, client applications can send requests to obtain inferences. The endpoint co...
[ "Create", "an", "Amazon", "SageMaker", "Endpoint", "according", "to", "the", "endpoint", "configuration", "specified", "in", "the", "request", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L758-L779
[ "def", "create_endpoint", "(", "self", ",", "endpoint_name", ",", "config_name", ",", "tags", "=", "None", ",", "wait", "=", "True", ")", ":", "LOGGER", ".", "info", "(", "'Creating endpoint with name {}'", ".", "format", "(", "endpoint_name", ")", ")", "tag...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.update_endpoint
Update an Amazon SageMaker ``Endpoint`` according to the endpoint configuration specified in the request Raise an error if endpoint with endpoint_name does not exist. Args: endpoint_name (str): Name of the Amazon SageMaker ``Endpoint`` to update. endpoint_config_name (str): Nam...
src/sagemaker/session.py
def update_endpoint(self, endpoint_name, endpoint_config_name): """ Update an Amazon SageMaker ``Endpoint`` according to the endpoint configuration specified in the request Raise an error if endpoint with endpoint_name does not exist. Args: endpoint_name (str): Name of the Amazon S...
def update_endpoint(self, endpoint_name, endpoint_config_name): """ Update an Amazon SageMaker ``Endpoint`` according to the endpoint configuration specified in the request Raise an error if endpoint with endpoint_name does not exist. Args: endpoint_name (str): Name of the Amazon S...
[ "Update", "an", "Amazon", "SageMaker", "Endpoint", "according", "to", "the", "endpoint", "configuration", "specified", "in", "the", "request" ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L781-L799
[ "def", "update_endpoint", "(", "self", ",", "endpoint_name", ",", "endpoint_config_name", ")", ":", "if", "not", "_deployment_entity_exists", "(", "lambda", ":", "self", ".", "sagemaker_client", ".", "describe_endpoint", "(", "EndpointName", "=", "endpoint_name", ")...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.delete_endpoint
Delete an Amazon SageMaker ``Endpoint``. Args: endpoint_name (str): Name of the Amazon SageMaker ``Endpoint`` to delete.
src/sagemaker/session.py
def delete_endpoint(self, endpoint_name): """Delete an Amazon SageMaker ``Endpoint``. Args: endpoint_name (str): Name of the Amazon SageMaker ``Endpoint`` to delete. """ LOGGER.info('Deleting endpoint with name: {}'.format(endpoint_name)) self.sagemaker_client.delete...
def delete_endpoint(self, endpoint_name): """Delete an Amazon SageMaker ``Endpoint``. Args: endpoint_name (str): Name of the Amazon SageMaker ``Endpoint`` to delete. """ LOGGER.info('Deleting endpoint with name: {}'.format(endpoint_name)) self.sagemaker_client.delete...
[ "Delete", "an", "Amazon", "SageMaker", "Endpoint", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L801-L808
[ "def", "delete_endpoint", "(", "self", ",", "endpoint_name", ")", ":", "LOGGER", ".", "info", "(", "'Deleting endpoint with name: {}'", ".", "format", "(", "endpoint_name", ")", ")", "self", ".", "sagemaker_client", ".", "delete_endpoint", "(", "EndpointName", "="...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.delete_endpoint_config
Delete an Amazon SageMaker endpoint configuration. Args: endpoint_config_name (str): Name of the Amazon SageMaker endpoint configuration to delete.
src/sagemaker/session.py
def delete_endpoint_config(self, endpoint_config_name): """Delete an Amazon SageMaker endpoint configuration. Args: endpoint_config_name (str): Name of the Amazon SageMaker endpoint configuration to delete. """ LOGGER.info('Deleting endpoint configuration with name: {}'.form...
def delete_endpoint_config(self, endpoint_config_name): """Delete an Amazon SageMaker endpoint configuration. Args: endpoint_config_name (str): Name of the Amazon SageMaker endpoint configuration to delete. """ LOGGER.info('Deleting endpoint configuration with name: {}'.form...
[ "Delete", "an", "Amazon", "SageMaker", "endpoint", "configuration", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L810-L817
[ "def", "delete_endpoint_config", "(", "self", ",", "endpoint_config_name", ")", ":", "LOGGER", ".", "info", "(", "'Deleting endpoint configuration with name: {}'", ".", "format", "(", "endpoint_config_name", ")", ")", "self", ".", "sagemaker_client", ".", "delete_endpoi...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.delete_model
Delete an Amazon SageMaker Model. Args: model_name (str): Name of the Amazon SageMaker model to delete.
src/sagemaker/session.py
def delete_model(self, model_name): """Delete an Amazon SageMaker Model. Args: model_name (str): Name of the Amazon SageMaker model to delete. """ LOGGER.info('Deleting model with name: {}'.format(model_name)) self.sagemaker_client.delete_model(ModelName=model_name)
def delete_model(self, model_name): """Delete an Amazon SageMaker Model. Args: model_name (str): Name of the Amazon SageMaker model to delete. """ LOGGER.info('Deleting model with name: {}'.format(model_name)) self.sagemaker_client.delete_model(ModelName=model_name)
[ "Delete", "an", "Amazon", "SageMaker", "Model", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L819-L827
[ "def", "delete_model", "(", "self", ",", "model_name", ")", ":", "LOGGER", ".", "info", "(", "'Deleting model with name: {}'", ".", "format", "(", "model_name", ")", ")", "self", ".", "sagemaker_client", ".", "delete_model", "(", "ModelName", "=", "model_name", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.wait_for_job
Wait for an Amazon SageMaker training job to complete. Args: job (str): Name of the training job to wait for. poll (int): Polling interval in seconds (default: 5). Returns: (dict): Return value from the ``DescribeTrainingJob`` API. Raises: Value...
src/sagemaker/session.py
def wait_for_job(self, job, poll=5): """Wait for an Amazon SageMaker training job to complete. Args: job (str): Name of the training job to wait for. poll (int): Polling interval in seconds (default: 5). Returns: (dict): Return value from the ``DescribeTrain...
def wait_for_job(self, job, poll=5): """Wait for an Amazon SageMaker training job to complete. Args: job (str): Name of the training job to wait for. poll (int): Polling interval in seconds (default: 5). Returns: (dict): Return value from the ``DescribeTrain...
[ "Wait", "for", "an", "Amazon", "SageMaker", "training", "job", "to", "complete", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L829-L845
[ "def", "wait_for_job", "(", "self", ",", "job", ",", "poll", "=", "5", ")", ":", "desc", "=", "_wait_until_training_done", "(", "lambda", "last_desc", ":", "_train_done", "(", "self", ".", "sagemaker_client", ",", "job", ",", "last_desc", ")", ",", "None",...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.wait_for_compilation_job
Wait for an Amazon SageMaker Neo compilation job to complete. Args: job (str): Name of the compilation job to wait for. poll (int): Polling interval in seconds (default: 5). Returns: (dict): Return value from the ``DescribeCompilationJob`` API. Raises: ...
src/sagemaker/session.py
def wait_for_compilation_job(self, job, poll=5): """Wait for an Amazon SageMaker Neo compilation job to complete. Args: job (str): Name of the compilation job to wait for. poll (int): Polling interval in seconds (default: 5). Returns: (dict): Return value fr...
def wait_for_compilation_job(self, job, poll=5): """Wait for an Amazon SageMaker Neo compilation job to complete. Args: job (str): Name of the compilation job to wait for. poll (int): Polling interval in seconds (default: 5). Returns: (dict): Return value fr...
[ "Wait", "for", "an", "Amazon", "SageMaker", "Neo", "compilation", "job", "to", "complete", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L847-L862
[ "def", "wait_for_compilation_job", "(", "self", ",", "job", ",", "poll", "=", "5", ")", ":", "desc", "=", "_wait_until", "(", "lambda", ":", "_compilation_job_status", "(", "self", ".", "sagemaker_client", ",", "job", ")", ",", "poll", ")", "self", ".", ...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.wait_for_tuning_job
Wait for an Amazon SageMaker hyperparameter tuning job to complete. Args: job (str): Name of the tuning job to wait for. poll (int): Polling interval in seconds (default: 5). Returns: (dict): Return value from the ``DescribeHyperParameterTuningJob`` API. Ra...
src/sagemaker/session.py
def wait_for_tuning_job(self, job, poll=5): """Wait for an Amazon SageMaker hyperparameter tuning job to complete. Args: job (str): Name of the tuning job to wait for. poll (int): Polling interval in seconds (default: 5). Returns: (dict): Return value from t...
def wait_for_tuning_job(self, job, poll=5): """Wait for an Amazon SageMaker hyperparameter tuning job to complete. Args: job (str): Name of the tuning job to wait for. poll (int): Polling interval in seconds (default: 5). Returns: (dict): Return value from t...
[ "Wait", "for", "an", "Amazon", "SageMaker", "hyperparameter", "tuning", "job", "to", "complete", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L864-L879
[ "def", "wait_for_tuning_job", "(", "self", ",", "job", ",", "poll", "=", "5", ")", ":", "desc", "=", "_wait_until", "(", "lambda", ":", "_tuning_job_status", "(", "self", ".", "sagemaker_client", ",", "job", ")", ",", "poll", ")", "self", ".", "_check_jo...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.wait_for_transform_job
Wait for an Amazon SageMaker transform job to complete. Args: job (str): Name of the transform job to wait for. poll (int): Polling interval in seconds (default: 5). Returns: (dict): Return value from the ``DescribeTransformJob`` API. Raises: Va...
src/sagemaker/session.py
def wait_for_transform_job(self, job, poll=5): """Wait for an Amazon SageMaker transform job to complete. Args: job (str): Name of the transform job to wait for. poll (int): Polling interval in seconds (default: 5). Returns: (dict): Return value from the ``D...
def wait_for_transform_job(self, job, poll=5): """Wait for an Amazon SageMaker transform job to complete. Args: job (str): Name of the transform job to wait for. poll (int): Polling interval in seconds (default: 5). Returns: (dict): Return value from the ``D...
[ "Wait", "for", "an", "Amazon", "SageMaker", "transform", "job", "to", "complete", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L881-L896
[ "def", "wait_for_transform_job", "(", "self", ",", "job", ",", "poll", "=", "5", ")", ":", "desc", "=", "_wait_until", "(", "lambda", ":", "_transform_job_status", "(", "self", ".", "sagemaker_client", ",", "job", ")", ",", "poll", ")", "self", ".", "_ch...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session._check_job_status
Check to see if the job completed successfully and, if not, construct and raise a ValueError. Args: job (str): The name of the job to check. desc (dict[str, str]): The result of ``describe_training_job()``. status_key_name (str): Status key name to check for. ...
src/sagemaker/session.py
def _check_job_status(self, job, desc, status_key_name): """Check to see if the job completed successfully and, if not, construct and raise a ValueError. Args: job (str): The name of the job to check. desc (dict[str, str]): The result of ``describe_training_job()``. ...
def _check_job_status(self, job, desc, status_key_name): """Check to see if the job completed successfully and, if not, construct and raise a ValueError. Args: job (str): The name of the job to check. desc (dict[str, str]): The result of ``describe_training_job()``. ...
[ "Check", "to", "see", "if", "the", "job", "completed", "successfully", "and", "if", "not", "construct", "and", "raise", "a", "ValueError", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L898-L917
[ "def", "_check_job_status", "(", "self", ",", "job", ",", "desc", ",", "status_key_name", ")", ":", "status", "=", "desc", "[", "status_key_name", "]", "# If the status is capital case, then convert it to Camel case", "status", "=", "_STATUS_CODE_TABLE", ".", "get", "...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.wait_for_endpoint
Wait for an Amazon SageMaker endpoint deployment to complete. Args: endpoint (str): Name of the ``Endpoint`` to wait for. poll (int): Polling interval in seconds (default: 5). Returns: dict: Return value from the ``DescribeEndpoint`` API.
src/sagemaker/session.py
def wait_for_endpoint(self, endpoint, poll=5): """Wait for an Amazon SageMaker endpoint deployment to complete. Args: endpoint (str): Name of the ``Endpoint`` to wait for. poll (int): Polling interval in seconds (default: 5). Returns: dict: Return value from...
def wait_for_endpoint(self, endpoint, poll=5): """Wait for an Amazon SageMaker endpoint deployment to complete. Args: endpoint (str): Name of the ``Endpoint`` to wait for. poll (int): Polling interval in seconds (default: 5). Returns: dict: Return value from...
[ "Wait", "for", "an", "Amazon", "SageMaker", "endpoint", "deployment", "to", "complete", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L919-L935
[ "def", "wait_for_endpoint", "(", "self", ",", "endpoint", ",", "poll", "=", "5", ")", ":", "desc", "=", "_wait_until", "(", "lambda", ":", "_deploy_done", "(", "self", ".", "sagemaker_client", ",", "endpoint", ")", ",", "poll", ")", "status", "=", "desc"...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.endpoint_from_job
Create an ``Endpoint`` using the results of a successful training job. Specify the job name, Docker image containing the inference code, and hardware configuration to deploy the model. Internally the API, creates an Amazon SageMaker model (that describes the model artifacts and the Docker image...
src/sagemaker/session.py
def endpoint_from_job(self, job_name, initial_instance_count, instance_type, deployment_image=None, name=None, role=None, wait=True, model_environment_vars=None, vpc_config_override=vpc_utils.VPC_CONFIG_DEFAULT, accelerator_type=None): ...
def endpoint_from_job(self, job_name, initial_instance_count, instance_type, deployment_image=None, name=None, role=None, wait=True, model_environment_vars=None, vpc_config_override=vpc_utils.VPC_CONFIG_DEFAULT, accelerator_type=None): ...
[ "Create", "an", "Endpoint", "using", "the", "results", "of", "a", "successful", "training", "job", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L937-L985
[ "def", "endpoint_from_job", "(", "self", ",", "job_name", ",", "initial_instance_count", ",", "instance_type", ",", "deployment_image", "=", "None", ",", "name", "=", "None", ",", "role", "=", "None", ",", "wait", "=", "True", ",", "model_environment_vars", "=...
a9e724c7d3f5572b68c3903548c792a59d99799a
train
Session.endpoint_from_model_data
Create and deploy to an ``Endpoint`` using existing model data stored in S3. Args: model_s3_location (str): S3 URI of the model artifacts to use for the endpoint. deployment_image (str): The Docker image which defines the runtime code to be used as the entry point for ac...
src/sagemaker/session.py
def endpoint_from_model_data(self, model_s3_location, deployment_image, initial_instance_count, instance_type, name=None, role=None, wait=True, model_environment_vars=None, model_vpc_config=None, accelerator_type=None): """Create and deploy to an...
def endpoint_from_model_data(self, model_s3_location, deployment_image, initial_instance_count, instance_type, name=None, role=None, wait=True, model_environment_vars=None, model_vpc_config=None, accelerator_type=None): """Create and deploy to an...
[ "Create", "and", "deploy", "to", "an", "Endpoint", "using", "existing", "model", "data", "stored", "in", "S3", "." ]
aws/sagemaker-python-sdk
python
https://github.com/aws/sagemaker-python-sdk/blob/a9e724c7d3f5572b68c3903548c792a59d99799a/src/sagemaker/session.py#L987-L1042
[ "def", "endpoint_from_model_data", "(", "self", ",", "model_s3_location", ",", "deployment_image", ",", "initial_instance_count", ",", "instance_type", ",", "name", "=", "None", ",", "role", "=", "None", ",", "wait", "=", "True", ",", "model_environment_vars", "="...
a9e724c7d3f5572b68c3903548c792a59d99799a