Sagemaker Transformer

0

Hi, I've constructed a pipeline using Scikit-Learn on SageMaker, incorporating data transformations and a Random Forest model, then I use the hyperparameter tuner to find the best model.

I can unpack and load the best model and use it to do a prediction.

As I would like to move the model to production, I am trying to do a batch transformation.

sklearn_model = SKLearnModel(model_data='s3://BUCKET/PATH/model.tar.gz',
                             role=role,
                             framework_version='1.2-1',
                             py_version='py3')

transformer = sklearn_model.transformer(instance_count=1, 
                                        instance_type='ml.m5.large',
                                        output_path='s3://BUCKET/PATH/prediction/')

transformer.transform(data='s3://BUCKET/PATH/input/test.csv',
                      content_type='text/csv',
                      split_type='Line')

However, I consistently encounter this error: AttributeError: 'NoneType' object has no attribute 'startswith'. What might be causing this issue?

Thanks,

Mat

질문됨 한 달 전95회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠