Skip to content

Commit f687c91

Browse files
Update Batch Transform - breast cancer prediction with high level SDK.ipynb (#1138)
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'>" Co-authored-by: Aaron Markham <[email protected]>
1 parent cc3bbc7 commit f687c91

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)