#!/usr/bin/env python # coding: utf-8 #
# ### Machine Learning # # Deep Learning Neural Networks # ### [Luis Martí](http://lmarti.com) # #### [Instituto de Computação](http://www.ic.uff) # #### [Universidade Federal Fluminense](http://www.uff.br) # $\newcommand{\vec}[1]{\boldsymbol{#1}}$ # In[1]: import random import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.cm as cm from mpl_toolkits.mplot3d import Axes3D # In[2]: import seaborn seaborn.set(style='whitegrid') seaborn.set_context('talk') get_ipython().run_line_magic('matplotlib', 'inline') get_ipython().run_line_magic('config', "InlineBackend.figure_format = 'retina'") # In[3]: from ipywidgets import interact, interactive, fixed import ipywidgets as widgets # In[6]: # tikzmagic extesion for figures - https://github.com/mkrphys/ipython-tikzmagic get_ipython().run_line_magic('load_ext', 'tikzmagic') # In[7]: # fixing a seed for reproducibility, do not do this in real life. random.seed(a=42) # ### About the notebook/slides # # * The slides are _programmed_ as a [Jupyter](http://jupyter.org)/[IPython](https://ipython.org/) notebook. # * **Feel free to try them and experiment on your own by launching the notebooks.** # # * You can run the notebook online: [![Binder](http://mybinder.org/badge.svg)](http://mybinder.org/repo/lmarti/machine-learning) # If you are using [nbviewer](http://nbviewer.jupyter.org) you can change to slides mode by clicking on the icon: # #