diff options
author | 2016-01-24 23:05:22 -0800 | |
---|---|---|
committer | 2016-01-24 23:06:20 -0800 | |
commit | 9b70316263eb74476ab96b7c0f300c4d90223425 (patch) | |
tree | d10e30463edbc10e5225b80a90579abb00da87cf /tensorflow/examples/udacity/1_notmnist.ipynb | |
parent | 87af568b0b3e920d91cdb2114fd3f40d8b9504a9 (diff) |
Running our linter on a lot of files.
Change: 112920860
Diffstat (limited to 'tensorflow/examples/udacity/1_notmnist.ipynb')
-rw-r--r-- | tensorflow/examples/udacity/1_notmnist.ipynb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/examples/udacity/1_notmnist.ipynb b/tensorflow/examples/udacity/1_notmnist.ipynb index 9c9888664c..f39fc0f07a 100644 --- a/tensorflow/examples/udacity/1_notmnist.ipynb +++ b/tensorflow/examples/udacity/1_notmnist.ipynb @@ -123,7 +123,7 @@ "outputId": "ef6c790c-2513-4b09-962e-27c79390c762" }, "cell_type": "code", - "input": "num_classes = 10\n\ndef extract(filename):\n tar = tarfile.open(filename)\n tar.extractall()\n tar.close()\n root = os.path.splitext(os.path.splitext(filename)[0])[0] # remove .tar.gz\n data_folders = [os.path.join(root, d) for d in sorted(os.listdir(root))]\n if len(data_folders) != num_classes:\n raise Exception(\n 'Expected %d folders, one per class. Found %d instead.' % (\n num_folders, len(data_folders)))\n print data_folders\n return data_folders\n \ntrain_folders = extract(train_filename)\ntest_folders = extract(test_filename)", + "input": "num_classes = 10\n\ndef extract(filename):\n tar = tarfile.open(filename)\n tar.extractall()\n tar.close()\n root = os.path.splitext(os.path.splitext(filename)[0])[0] # remove .tar.gz\n data_folders = [os.path.join(root, d) for d in sorted(os.listdir(root))]\n if len(data_folders) != num_classes:\n raise Exception(\n 'Expected %d folders, one per class. Found %d instead.' % (\n num_classes, len(data_folders)))\n print data_folders\n return data_folders\n \ntrain_folders = extract(train_filename)\ntest_folders = extract(test_filename)", "language": "python", "outputs": [ { @@ -393,4 +393,4 @@ }, "nbformat": 3, "nbformat_minor": 0 -}
\ No newline at end of file +} |