Skip to content

Commit 761627b

Browse files
authored
Update Batch Transform - breast cancer prediction with high level SDK.ipynb
Fix a small bug. Before specifying content_type='text/csv' in sm_transformer.transform, I get error that "Loading libsvm data failed with Exception, please ensure data is in libsvm format: <class 'ValueError'>"
1 parent 5a8d53a commit 761627b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sagemaker_batch_transform/batch_transform_associate_predictions_with_input/Batch Transform - breast cancer prediction with high level SDK.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
"\n",
303303
"# start a transform job\n",
304304
"input_location = 's3://{}/{}/batch/{}'.format(bucket, prefix, batch_file_noID) # use input data without ID column\n",
305-
"sm_transformer.transform(input_location, split_type='Line')\n",
305+
"sm_transformer.transform(input_location, content_type='text/csv', split_type='Line')\n",
306306
"sm_transformer.wait()"
307307
]
308308
},

0 commit comments

Comments
 (0)