【发布时间】:2020-07-19 12:36:37
【问题描述】:
我正在关注this example,了解如何在 Amazon-sagemaker 中训练机器学习模型。
data_location = 's3://{}/kmeans_highlevel_example/data'.format(bucket)
output_location = 's3://{}/kmeans_highlevel_example/output'.format(bucket)
print('training data will be uploaded to: {}'.format(data_location))
print('training artifacts will be uploaded to: {}'.format(output_location))
kmeans = KMeans(role=role,
train_instance_count=2,
train_instance_type='ml.c4.8xlarge',
output_path=output_location,
k=10,
epochs=100,
data_location=data_location)
所以调用 fit 函数后,模型应该保存在 S3 存储桶中??下次怎么加载这个模型?
【问题讨论】:
标签: amazon-web-services amazon-s3 amazon-sagemaker