swap709
swap709

Reputation: 173

AWS Sagemaker unable to parse csv

I'm trying to run a training job on AWS Sagemaker, but it keeps failing giving the following error:

ClientError: Unable to parse csv: rows 1-5000, file /opt/ml/input/data/train/KMeans_data.csv

I've selected 'text/csv' as the content type and my CSV file contains 5 columns with numerical content and text headers.

Can anyone point out what could be going wrong here?

Thanks!

Upvotes: 7

Views: 7855

Answers (3)

teja
teja

Reputation: 11

Make sure to not have any new lines in the cells of .csv file.

Upvotes: 0

Sagarika Kathuria
Sagarika Kathuria

Reputation: 1

Try to make sure that there are no other files other than the training file in the training folder in S3 bucket.

Upvotes: 0

julitopower
julitopower

Reputation: 181

From https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-training.html CSV must not have headers:

Amazon SageMaker requires that a CSV file doesn't have a header record ...

Try removing the header row.

Upvotes: 10

Related Questions