Skip to content

How pass a name to models saved with sagemaker.sklearn.estimator.SKLearn #785

@plynch-chwy

Description

@plynch-chwy

Please fill out the form below.

System Information

  • Framework (e.g. TensorFlow) / Algorithm (e.g. KMeans): SKLearn
  • Framework Version: 0.20.0
  • Python Version: 3.6
  • CPU or GPU: CPU
  • Python SDK Version: 1.18.16.dev0
  • Are you using a custom image: No

Describe the problem

I am creating an SKLearn estimator and specifying a base_job_name, but my saved models are being saved as sagemaker-scikit-learn-timestamp.

from sagemaker.sklearn.estimator import SKLearn

...

my_estimator = SKLearn(
    entry_point='entry.py',
    source_dir='src/sagemaker/',
    hyperparameters=hyperparams,
    py_version='py3',
    framework_version='0.20.0',
    role=role,
    train_instance_type=instance_type,
    base_job_name='my-classifier',
    output_path=outputs,
    code_location=code_location)

my_estimator.fit(inputs=inputs)

An example saved model that is saved from this training job is then sagemaker-scikit-learn-2019-05-08-12-50-06-661.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions