REFERENCE BOOK: http://srdas.github.io/DLBook2
“You are my creator, but I am your master; Obey!”
― Mary Shelley, Frankenstein
!pip install ipypublish
Collecting ipypublish Downloading https://files.pythonhosted.org/packages/06/e1/1d5a845940e558fd3fc3c6f4265f83d45945fd8fb103fab35b0c8af0da27/ipypublish-0.10.11-py2.py3-none-any.whl (292kB) |████████████████████████████████| 296kB 4.6MB/s Requirement already satisfied: six>=1.11.0 in /usr/local/lib/python3.6/dist-packages (from ipypublish) (1.15.0) Collecting ruamel.yaml Downloading https://files.pythonhosted.org/packages/a6/92/59af3e38227b9cc14520bf1e59516d99ceca53e3b8448094248171e9432b/ruamel.yaml-0.16.10-py2.py3-none-any.whl (111kB) |████████████████████████████████| 112kB 14.7MB/s Requirement already satisfied: docutils; python_version >= "3" in /usr/local/lib/python3.6/dist-packages (from ipypublish) (0.15.2) Collecting jsonextended>=0.7 Downloading https://files.pythonhosted.org/packages/7b/aa/e084e46ed3a7aab0b910790ca82f496e71dc5a2b7cc64793ee54f5d8bbd3/jsonextended-0.7.11-py2.py3-none-any.whl (466kB) |████████████████████████████████| 471kB 16.8MB/s Requirement already satisfied: jinja2 in /usr/local/lib/python3.6/dist-packages (from ipypublish) (2.11.2) Requirement already satisfied: traitlets in /usr/local/lib/python3.6/dist-packages (from ipypublish) (4.3.3) Requirement already satisfied: nbformat in /usr/local/lib/python3.6/dist-packages (from ipypublish) (5.0.7) Requirement already satisfied: nbconvert in /usr/local/lib/python3.6/dist-packages (from ipypublish) (5.6.1) Collecting panflute Downloading https://files.pythonhosted.org/packages/84/e3/7b5c4b449b7b06b8d92884ebc04103a718ed00dea8179f2be504f91776a8/panflute-1.12.5.tar.gz Collecting bibtexparser Downloading https://files.pythonhosted.org/packages/7c/c3/c184a4460ba2f4877e3389e2d63479f642d0d3bdffeeffee0723d3b0156d/bibtexparser-1.2.0.tar.gz (46kB) |████████████████████████████████| 51kB 8.3MB/s Collecting ordered-set Downloading https://files.pythonhosted.org/packages/f5/ab/8252360bfe965bba31ec05112b3067bd129ce4800d89e0b85613bc6044f6/ordered-set-4.0.2.tar.gz Requirement already satisfied: tornado in /usr/local/lib/python3.6/dist-packages (from ipypublish) (5.1.1) Collecting jupytext Downloading https://files.pythonhosted.org/packages/bc/71/eaba4f15759a8295e51dd8bffcb5bbd076a2e1742da56509fe5ade1271ec/jupytext-1.5.2.tar.gz (677kB) |████████████████████████████████| 686kB 19.6MB/s Requirement already satisfied: jsonschema in /usr/local/lib/python3.6/dist-packages (from ipypublish) (2.6.0) Collecting ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.9" Downloading https://files.pythonhosted.org/packages/53/77/4bcd63f362bcb6c8f4f06253c11f9772f64189bf08cf3f40c5ccbda9e561/ruamel.yaml.clib-0.2.0-cp36-cp36m-manylinux1_x86_64.whl (548kB) |████████████████████████████████| 552kB 29.8MB/s Collecting pathlib2 Downloading https://files.pythonhosted.org/packages/e9/45/9c82d3666af4ef9f221cbb954e1d77ddbb513faf552aea6df5f37f1a4859/pathlib2-2.3.5-py2.py3-none-any.whl Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.6/dist-packages (from jinja2->ipypublish) (1.1.1) Requirement already satisfied: decorator in /usr/local/lib/python3.6/dist-packages (from traitlets->ipypublish) (4.4.2) Requirement already satisfied: ipython-genutils in /usr/local/lib/python3.6/dist-packages (from traitlets->ipypublish) (0.2.0) Requirement already satisfied: jupyter-core in /usr/local/lib/python3.6/dist-packages (from nbformat->ipypublish) (4.6.3) Requirement already satisfied: bleach in /usr/local/lib/python3.6/dist-packages (from nbconvert->ipypublish) (3.1.5) Requirement already satisfied: pygments in /usr/local/lib/python3.6/dist-packages (from nbconvert->ipypublish) (2.1.3) Requirement already satisfied: mistune<2,>=0.8.1 in /usr/local/lib/python3.6/dist-packages (from nbconvert->ipypublish) (0.8.4) Requirement already satisfied: testpath in /usr/local/lib/python3.6/dist-packages (from nbconvert->ipypublish) (0.4.4) Requirement already satisfied: defusedxml in /usr/local/lib/python3.6/dist-packages (from nbconvert->ipypublish) (0.6.0) Requirement already satisfied: entrypoints>=0.2.2 in /usr/local/lib/python3.6/dist-packages (from nbconvert->ipypublish) (0.3) Requirement already satisfied: pandocfilters>=1.4.1 in /usr/local/lib/python3.6/dist-packages (from nbconvert->ipypublish) (1.4.2) Requirement already satisfied: pyyaml in /usr/local/lib/python3.6/dist-packages (from panflute->ipypublish) (3.13) Requirement already satisfied: click in /usr/local/lib/python3.6/dist-packages (from panflute->ipypublish) (7.1.2) Requirement already satisfied: pyparsing>=2.0.3 in /usr/local/lib/python3.6/dist-packages (from bibtexparser->ipypublish) (2.4.7) Requirement already satisfied: future>=0.16.0 in /usr/local/lib/python3.6/dist-packages (from bibtexparser->ipypublish) (0.16.0) Requirement already satisfied: toml in /usr/local/lib/python3.6/dist-packages (from jupytext->ipypublish) (0.10.1) Requirement already satisfied: packaging in /usr/local/lib/python3.6/dist-packages (from bleach->nbconvert->ipypublish) (20.4) Requirement already satisfied: webencodings in /usr/local/lib/python3.6/dist-packages (from bleach->nbconvert->ipypublish) (0.5.1) Building wheels for collected packages: panflute, bibtexparser, ordered-set, jupytext Building wheel for panflute (setup.py) ... done Created wheel for panflute: filename=panflute-1.12.5-cp36-none-any.whl size=31627 sha256=676fe43af43c2ee924ac78cb5443892d7dd3fa6cfccf92713c51d53eb77fde2e Stored in directory: /root/.cache/pip/wheels/32/b3/ae/db7fa3b632575b1050b93af1ab043eb868ed20b5cefa5a3912 Building wheel for bibtexparser (setup.py) ... done Created wheel for bibtexparser: filename=bibtexparser-1.2.0-cp36-none-any.whl size=36714 sha256=6fa2e578a13d20a30fbcd3260d4e7e0006f031e75de048f2c3b61d9c172c95b2 Stored in directory: /root/.cache/pip/wheels/b2/5a/e7/867bcbc3a81c15b675b931aa19b6698375c5a5e90419a366db Building wheel for ordered-set (setup.py) ... done Created wheel for ordered-set: filename=ordered_set-4.0.2-py2.py3-none-any.whl size=8209 sha256=f8f7f8dfa2b453410667a3a19e84697071a9598225a888609ff0bc57fa2489ee Stored in directory: /root/.cache/pip/wheels/e1/c6/9b/651d8a21d59b51a75ab9c070838f9231b8126421bc0569af47 Building wheel for jupytext (setup.py) ... done Created wheel for jupytext: filename=jupytext-1.5.2-cp36-none-any.whl size=281979 sha256=3299047d859eb8c3f24e06a74b358487553ab824f305a8f0fecac8aa67b69c68 Stored in directory: /root/.cache/pip/wheels/d1/3b/42/81158eb89f58243fe0b47f41d0d28670171354276f437ee630 Successfully built panflute bibtexparser ordered-set jupytext Installing collected packages: ruamel.yaml.clib, ruamel.yaml, pathlib2, jsonextended, panflute, bibtexparser, ordered-set, jupytext, ipypublish Successfully installed bibtexparser-1.2.0 ipypublish-0.10.11 jsonextended-0.7.11 jupytext-1.5.2 ordered-set-4.0.2 panflute-1.12.5 pathlib2-2.3.5 ruamel.yaml-0.16.10 ruamel.yaml.clib-0.2.0
%pylab inline
import pandas as pd
from IPython.external import mathjax
from ipypublish import nb_setup
Populating the interactive namespace from numpy and matplotlib
from google.colab import drive
drive.mount('/content/drive') # Add My Drive/<>
import os
os.chdir('drive/My Drive')
os.chdir('Books_Writings/ML_Book/')
Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount("/content/drive", force_remount=True).
--------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-4-28aef19873cf> in <module>() 3 4 import os ----> 5 os.chdir('drive/My Drive') 6 os.chdir('Books_Writings/ML_Book/') FileNotFoundError: [Errno 2] No such file or directory: 'drive/My Drive'
nb_setup.images_hconcat(["DSTMAA_images/ML_AI.png"], width=600)
Interesting short book: https://medium.com/machine-learning-for-humans/why-machine-learning-matters-6164faf1df12
The Universal Approximation Theorem: https://medium.com/analytics-vidhya/you-dont-understand-neural-networks-until-you-understand-the-universal-approximation-theorem-85b3e7677126
nb_setup.images_hconcat(["DSTMAA_images/DL_PatternRecognition.png"], width=600)
nb_setup.images_hconcat(["DSTMAA_images/NN_diagram.png"], width=600)