3 個答案
- 最新
- 最多得票
- 最多評論
0
Your best bet is to put the data in S3 if possible. S3 integrates directly with SageMaker so it should be seamless.
0
Yes the data is stored in S3. Do you mean I can simply download the data from S3 bucket using boto3 (say in the function the loads the model)?
已回答 1 年前
0
Yes. Here is a sample snippet of code
import boto3
s3 = boto3.client('s3')
s3.download_file('BUCKET_NAME', 'OBJECT_NAME', 'FILE_NAME')
s3 = boto3.client('s3')
with open('FILE_NAME', 'wb') as f: s3.download_fileobj('BUCKET_NAME', 'OBJECT_NAME', f)
相關內容
- 已提問 10 個月前
- AWS 官方已更新 2 年前