Skip to content

Commit

Permalink
fix scikit_bring_your_own.ipynb (aws#3552)
Browse files Browse the repository at this point in the history
* fix scikit_bring_your_own.ipynb

* debug

* debug

* debug

* debug

* cleanup

* cleanup

* cleanup

Co-authored-by: EC2 Default User <[email protected]>
  • Loading branch information
atqy and EC2 Default User authored Aug 18, 2022
1 parent 57eab4c commit dd53fe1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def train():
'This usually indicates that the channel ({}) was incorrectly specified,\n' +
'the data specification in S3 was incorrectly specified or the role specified\n' +
'does not have permission to access the data.').format(training_path, channel_name))
raw_data = [ pd.read_csv(file, header=None) for file in input_files ]
raw_data = [ pd.read_csv(file, header=None) for file in input_files if file.endswith(".csv")]
train_data = pd.concat(raw_data)

# labels are in the first column
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
"# Build the docker image locally with the image name and then push it to ECR\n",
"# with the full name.\n",
"\n",
"docker build -t ${algorithm_name} .\n",
"docker build -t ${algorithm_name} .\n",
"docker tag ${algorithm_name} ${fullname}\n",
"\n",
"docker push ${fullname}"
Expand Down Expand Up @@ -315,9 +315,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# S3 prefix\n",
Expand Down Expand Up @@ -347,9 +345,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"import sagemaker as sage\n",
Expand Down

0 comments on commit dd53fe1

Please sign in to comment.