diff --git a/advanced_functionality/scikit_bring_your_own/container/decision_trees/train b/advanced_functionality/scikit_bring_your_own/container/decision_trees/train index 8654139ed8..1be2e1eea6 100755 --- a/advanced_functionality/scikit_bring_your_own/container/decision_trees/train +++ b/advanced_functionality/scikit_bring_your_own/container/decision_trees/train @@ -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 diff --git a/advanced_functionality/scikit_bring_your_own/scikit_bring_your_own.ipynb b/advanced_functionality/scikit_bring_your_own/scikit_bring_your_own.ipynb index 9fab0f8d5b..d6c046ce83 100644 --- a/advanced_functionality/scikit_bring_your_own/scikit_bring_your_own.ipynb +++ b/advanced_functionality/scikit_bring_your_own/scikit_bring_your_own.ipynb @@ -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}" @@ -315,9 +315,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "collapsed": true - }, + "metadata": {}, "outputs": [], "source": [ "# S3 prefix\n", @@ -347,9 +345,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "collapsed": true - }, + "metadata": {}, "outputs": [], "source": [ "import sagemaker as sage\n",