macOS
$ jupiter notebook
[I 10:26:54.511 NotebookApp] The port 8888 is already in use, trying another port.
[I 10:26:54.864 NotebookApp] Serving notebooks from local directory: /Users/administrator/Desktop/ai_study_nagao
[I 10:26:54.864 NotebookApp] 0 active kernels
[I 10:26:54.864 NotebookApp] The Jupyter Notebook is running at: http://localhost:8889/?token=e85d11576be3a551e8f2ada804cbd11742cb82b6565f722c
[I 10:26:54.864 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 10:26:54.865 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8889/?token=e85d11576be3a551e8f2ada804cbd11742cb82b6565f722c
[I 10:26:57.004 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[W 10:27:02.044 NotebookApp] Notebook ai_study.ipynb is not trusted
[I 10:27:06.185 NotebookApp] Kernel started: 98446682-d81f-44b3-86b5-90130e3f6caa
[I 10:29:05.934 NotebookApp] Saving file at /ai_study.ipynb
[W 10:29:05.936 NotebookApp] Saving untrusted notebook ai_study.ipynb
docker で8888使ってた。
jupyterでファイル選択
# MNISTのダウンロード
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("/tmp/data/")
C:\Users\sakata\Anaconda3\envs\studyML-gpu\lib\site-packages\dask\config.py:168: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
data = yaml.load(f.read()) or {}
WARNING:tensorflow:From <ipython-input-22-f05f99d671a3>:3: read_data_sets (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
WARNING:tensorflow:From C:\Users\sakata\Anaconda3\envs\studyML-gpu\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:260: maybe_download (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version.
Instructions for updating:
Please write your own downloading logic.
WARNING:tensorflow:From C:\Users\sakata\Anaconda3\envs\studyML-gpu\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:262: extract_images (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
Extracting /tmp/data/train-images-idx3-ubyte.gz
WARNING:tensorflow:From C:\Users\sakata\Anaconda3\envs\studyML-gpu\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:267: extract_labels (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
Extracting /tmp/data/train-labels-idx1-ubyte.gz
Extracting /tmp/data/t10k-images-idx3-ubyte.gz
Extracting /tmp/data/t10k-labels-idx1-ubyte.gz
WARNING:tensorflow:From C:\Users\sakata\Anaconda3\envs\studyML-gpu\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:290: DataSet.__init__ (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
もう1箇所
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("./tmp/data/")
C:\Users\sakata\Anaconda3\envs\studyML-gpu\lib\site-packages\dask\config.py:168: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
data = yaml.load(f.read()) or {}
WARNING:tensorflow:From <ipython-input-5-235989482ffe>:2: read_data_sets (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
WARNING:tensorflow:From C:\Users\sakata\Anaconda3\envs\studyML-gpu\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:260: maybe_download (from tensorflow.contrib.learn.python.learn.datasets.base) is deprecated and will be removed in a future version.
Instructions for updating:
Please write your own downloading logic.
WARNING:tensorflow:From C:\Users\sakata\Anaconda3\envs\studyML-gpu\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:262: extract_images (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
Extracting ./tmp/data/train-images-idx3-ubyte.gz
WARNING:tensorflow:From C:\Users\sakata\Anaconda3\envs\studyML-gpu\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:267: extract_labels (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use tf.data to implement this functionality.
Extracting ./tmp/data/train-labels-idx1-ubyte.gz
Extracting ./tmp/data/t10k-images-idx3-ubyte.gz
Extracting ./tmp/data/t10k-labels-idx1-ubyte.gz
WARNING:tensorflow:From C:\Users\sakata\Anaconda3\envs\studyML-gpu\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py:290: DataSet.__init__ (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.
Instructions for updating:
Please use alternatives such as official/mnist/dataset.py from tensorflow/models.
tensorflowが入っていなかったからかと思い導入。
あ、フォルダが存在しない。
macOS
^C[I 10:40:31.374 NotebookApp] interrupted
Serving notebooks from local directory: /Users/administrator/Desktop/ai_study_nagao
1 active kernels
The Jupyter Notebook is running at: http://localhost:8889/?token=e85d11576be3a551e8f2ada804cbd11742cb82b6565f722c
Shutdown this notebook server (y/[n])? y
[C 10:40:34.644 NotebookApp] Shutdown confirmed
[I 10:40:34.686 NotebookApp] Shutting down kernels
[I 10:40:35.102 NotebookApp] Kernel shutdown: 98446682-d81f-44b3-86b5-90130e3f6caa
$
conda install tensorflow