- Le plus récent
- Le plus de votes
- La plupart des commentaires
Hello,
I understand that you are getting errors during batch transformation jobs and would like to gather more information on the same.
I would like to mention that this is generally observed when there is a row entry that has "None" which cannot be casted as a string, so I would recommend that you please replace where there is a None or Null with an empty string (that is '') and also when the content_type is passed as Empty/None, so I would suggest that you please pass the content_type="text/csv".
I would suggest you please change the contentType to text/csv, i.e., "contentType": "text/csv" as below.
"transformInput": {
"dataSource": {
"s3DataSource": {
"s3DataType": "S3Prefix",
"s3Uri": "s3://Validation.csv"
}
},
"contentType": "text/csv",
"compressionType": "None",
"splitType": "None"
},
Furthermore, I would suggest that the model generated by the job requires that the input data not have a header row, and please also ensure that the input data have the same set of input columns as were used to train the model.
Moreover, you may refer to the AutoGluon batch transforming section here [4], and you will see that there is a script path, "amazon-sagemaker-examples/advanced_functionality/autogluon-tabular-containers/scripts/" from the same repository. The scripts path should help you compare the changes you have made to your own tabular_serve.py
file.
I would request that you please refer to the aforementioned documentation once, and please reach out to AWS [4] with the detailed use case so that we can assist you better.
If you have any difficulty verifying any of the above-mentioned points or if you still run into issues, please reach out to AWS Support [4] (Sagemaker) along with your issue or use case in detail, and we would be happy to assist you further.
References:
[1] https://sagemaker.readthedocs.io/en/v2.31.1/api/inference/transformer.html
[2] https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/content_types.py
[4] Creating support cases and case management - https://docs.aws.amazon.com/awssupport/latest/user/case-management.html#creating-a-support-casehttps://docs.aws.amazon.com/awssupport/latest/user/case-management.html#creating-a-support-case
Contenus pertinents
- demandé il y a 5 mois
- demandé il y a 7 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 8 mois