diff --git a/0_numpy_matplotlib_scipy_sympy/README.md b/0_numpy_matplotlib_scipy_sympy/README.md new file mode 100644 index 0000000..c589f2d --- /dev/null +++ b/0_numpy_matplotlib_scipy_sympy/README.md @@ -0,0 +1,14 @@ +# numpy, matplotlib, scipy等常用库 + +## 内容 +* [numpy教程](numpy_tutorial.ipynb) +* matplotlib + * [matplotlib系统学习](matplotlib_full.ipynb) + * [matplotlib简易教程](matplotlib_simple_tutorial.ipynb) +* [scipy](scipy_tutorial.ipynb) +* [sympy](sympy_tutorial.ipynb) + + +## References +* [手把手教你用Python做数据可视化](https://mp.weixin.qq.com/s/3Gwdjw8trwTR5uyr4G7EOg) +* [Essential Cheat Sheets for deep learning and machine learning researchers](https://github.com/kailashahirwar/cheatsheets-ai) diff --git a/0_numpy_matplotlib_scipy_sympy/scipy.ipynb b/0_numpy_matplotlib_scipy_sympy/scipy_tutorial.ipynb similarity index 100% rename from 0_numpy_matplotlib_scipy_sympy/scipy.ipynb rename to 0_numpy_matplotlib_scipy_sympy/scipy_tutorial.ipynb diff --git a/0_numpy_matplotlib_scipy_sympy/sympy.ipynb b/0_numpy_matplotlib_scipy_sympy/sympy_tutorial.ipynb similarity index 100% rename from 0_numpy_matplotlib_scipy_sympy/sympy.ipynb rename to 0_numpy_matplotlib_scipy_sympy/sympy_tutorial.ipynb diff --git a/README.md b/README.md index 4d2237d..1ddca63 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ 8. PyTorch ## 其他参考 +* [学习参考资料等](References.md) * [安装Python环境](tips/InstallPython.md) -* [参考资料等](References.md) -* [confusion matrix](tips/confusion_matrix.ipynb) \ No newline at end of file +* [confusion matrix](tips/confusion_matrix.ipynb) +* [一些速查手册](tips/cheatsheet) diff --git a/References.md b/References.md index a439ae5..281cf52 100644 --- a/References.md +++ b/References.md @@ -9,7 +9,8 @@ * [IPython tutorials](https://nbviewer.jupyter.org/github/ipython/ipython/blob/master/examples/IPython%20Kernel/Index.ipynb) * [Examples from the IPython mini-book](https://github.com/rossant/ipython-minibook) * [Code of the IPython Cookbook, Second Edition (2018)](https://github.com/ipython-books/cookbook-2nd-code) - +* [Essential Cheat Sheets for deep learning and machine learning researchers](https://github.com/kailashahirwar/cheatsheets-ai) +* [手把手教你用Python做数据可视化](https://mp.weixin.qq.com/s/3Gwdjw8trwTR5uyr4G7EOg) ## Libs * [numpy](http://www.numpy.org/) diff --git a/pytorch/README.md b/pytorch/README.md new file mode 100644 index 0000000..72e219e --- /dev/null +++ b/pytorch/README.md @@ -0,0 +1,10 @@ + + + +## References +* [Awesome-Pytorch-list](https://github.com/bharathgs/Awesome-pytorch-list) +* [PyTorch Tutorial for Deep Learning Researchers](https://github.com/yunjey/pytorch-tutorial) +* [The Incredible PyTorch: a curated list of tutorials, papers, projects, communities and more relating to PyTorch.](https://github.com/ritchieng/the-incredible-pytorch) +* [Simple examples to introduce PyTorch](https://github.com/jcjohnson/pytorch-examples) +* [Simple PyTorch Tutorials Zero to ALL!](https://github.com/hunkim/PyTorchZeroToAll) +* [从基础概念到实现,小白如何快速入门PyTorch](https://mp.weixin.qq.com/s/zhkaenFdnB5KgaEYb-XDEQ) \ No newline at end of file diff --git a/tips/cheatsheet/All Cheat Sheets.pdf b/tips/cheatsheet/All Cheat Sheets.pdf new file mode 100644 index 0000000..c7714f4 Binary files /dev/null and b/tips/cheatsheet/All Cheat Sheets.pdf differ diff --git a/tips/cheatsheet/Deep Learning Cheat Sheet-Hacker Noon.pdf b/tips/cheatsheet/Deep Learning Cheat Sheet-Hacker Noon.pdf new file mode 100644 index 0000000..a57e70f Binary files /dev/null and b/tips/cheatsheet/Deep Learning Cheat Sheet-Hacker Noon.pdf differ diff --git a/tips/cheatsheet/Keras.jpg b/tips/cheatsheet/Keras.jpg new file mode 100644 index 0000000..02a6b53 Binary files /dev/null and b/tips/cheatsheet/Keras.jpg differ diff --git a/tips/cheatsheet/Matplotlib.png b/tips/cheatsheet/Matplotlib.png new file mode 100644 index 0000000..6fb99f5 Binary files /dev/null and b/tips/cheatsheet/Matplotlib.png differ diff --git a/tips/cheatsheet/Neural Network Cells.png b/tips/cheatsheet/Neural Network Cells.png new file mode 100644 index 0000000..ac2bb43 Binary files /dev/null and b/tips/cheatsheet/Neural Network Cells.png differ diff --git a/tips/cheatsheet/Neural Network Graphs.png b/tips/cheatsheet/Neural Network Graphs.png new file mode 100644 index 0000000..cebd173 Binary files /dev/null and b/tips/cheatsheet/Neural Network Graphs.png differ diff --git a/tips/cheatsheet/Neural Networks Zoo.png b/tips/cheatsheet/Neural Networks Zoo.png new file mode 100644 index 0000000..674e2c1 Binary files /dev/null and b/tips/cheatsheet/Neural Networks Zoo.png differ diff --git a/tips/cheatsheet/Numpy.png b/tips/cheatsheet/Numpy.png new file mode 100644 index 0000000..540872c Binary files /dev/null and b/tips/cheatsheet/Numpy.png differ diff --git a/tips/cheatsheet/Pandas-1.jpg b/tips/cheatsheet/Pandas-1.jpg new file mode 100644 index 0000000..ed07e4f Binary files /dev/null and b/tips/cheatsheet/Pandas-1.jpg differ diff --git a/tips/cheatsheet/Pandas-2.jpg b/tips/cheatsheet/Pandas-2.jpg new file mode 100644 index 0000000..b6d438b Binary files /dev/null and b/tips/cheatsheet/Pandas-2.jpg differ diff --git a/tips/cheatsheet/Pandas-3.png b/tips/cheatsheet/Pandas-3.png new file mode 100644 index 0000000..7469874 Binary files /dev/null and b/tips/cheatsheet/Pandas-3.png differ diff --git a/tips/cheatsheet/README.md b/tips/cheatsheet/README.md new file mode 100644 index 0000000..b734729 --- /dev/null +++ b/tips/cheatsheet/README.md @@ -0,0 +1,4 @@ +# 常用库的速查手册 + +## References +* [Essential Cheat Sheets for deep learning and machine learning researchers](https://github.com/kailashahirwar/cheatsheets-ai) diff --git a/tips/cheatsheet/Scikit Learn.png b/tips/cheatsheet/Scikit Learn.png new file mode 100644 index 0000000..b4a474b Binary files /dev/null and b/tips/cheatsheet/Scikit Learn.png differ diff --git a/tips/cheatsheet/Scipy.png b/tips/cheatsheet/Scipy.png new file mode 100644 index 0000000..76c0881 Binary files /dev/null and b/tips/cheatsheet/Scipy.png differ diff --git a/tips/cheatsheet/Seaborn.pdf b/tips/cheatsheet/Seaborn.pdf new file mode 100644 index 0000000..c027caf Binary files /dev/null and b/tips/cheatsheet/Seaborn.pdf differ diff --git a/tips/cheatsheet/python3.pdf b/tips/cheatsheet/python3.pdf new file mode 100644 index 0000000..9b6dc9b Binary files /dev/null and b/tips/cheatsheet/python3.pdf differ diff --git a/tips/notebook_tips.ipynb b/tips/notebook_tips.ipynb new file mode 100644 index 0000000..a0f90d2 --- /dev/null +++ b/tips/notebook_tips.ipynb @@ -0,0 +1,232 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Show LaTeX equation\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "text/latex": [ + "\\begin{eqnarray}\n", + "\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} & = \\frac{4\\pi}{c}\\vec{\\mathbf{j}} \\\\\n", + "\\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\\n", + "\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\\n", + "\\nabla \\cdot \\vec{\\mathbf{B}} & = 0 \n", + "\\end{eqnarray}" + ], + "text/plain": [ + "" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "from IPython.display import Latex\n", + "Latex(r\"\"\"\\begin{eqnarray}\n", + "\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} & = \\frac{4\\pi}{c}\\vec{\\mathbf{j}} \\\\\n", + "\\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\\n", + "\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\\n", + "\\nabla \\cdot \\vec{\\mathbf{B}} & = 0 \n", + "\\end{eqnarray}\"\"\")" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "text/latex": [ + "\\begin{align}\n", + "\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} & = \\frac{4\\pi}{c}\\vec{\\mathbf{j}} \\\\\n", + "\\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\\n", + "\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\\n", + "\\nabla \\cdot \\vec{\\mathbf{B}} & = 0\n", + "\\end{align}" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%%latex\n", + "\\begin{align}\n", + "\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} & = \\frac{4\\pi}{c}\\vec{\\mathbf{j}} \\\\\n", + "\\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\\n", + "\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\\n", + "\\nabla \\cdot \\vec{\\mathbf{B}} & = 0\n", + "\\end{align}" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Audio\n" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " " + ], + "text/plain": [ + "" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "from IPython.display import Audio\n", + "Audio(url=\"http://www.nch.com.au/acm/8k16bitpcm.wav\")" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/home/bushuhui/.virtualenv/dl/lib/python3.5/site-packages/ipykernel_launcher.py:7: DeprecationWarning: object of type cannot be safely interpreted as an integer.\n", + " import sys\n" + ] + }, + { + "data": { + "text/html": [ + "\n", + " \n", + " " + ], + "text/plain": [ + "" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import numpy as np\n", + "max_time = 3\n", + "f1 = 220.0\n", + "f2 = 224.0\n", + "rate = 8000.0\n", + "L = 3\n", + "times = np.linspace(0,L,rate*L)\n", + "signal = np.sin(2*np.pi*f1*times) + np.sin(2*np.pi*f2*times)\n", + "\n", + "Audio(data=signal, rate=rate)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## External sites" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " " + ], + "text/plain": [ + "" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "from IPython.display import IFrame\n", + "IFrame('https://jupyter.org', width='100%', height=350)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## References\n", + "\n", + "* https://nbviewer.jupyter.org/github/ipython/ipython/blob/master/examples/IPython%20Kernel/Index.ipynb" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.2" + }, + "main_language": "python" + }, + "nbformat": 4, + "nbformat_minor": 2 +} diff --git a/tips/notebook_tips.py b/tips/notebook_tips.py new file mode 100644 index 0000000..ac649ae --- /dev/null +++ b/tips/notebook_tips.py @@ -0,0 +1,68 @@ +# --- +# jupyter: +# jupytext_format_version: '1.2' +# kernelspec: +# display_name: Python 3 +# language: python +# name: python3 +# language_info: +# codemirror_mode: +# name: ipython +# version: 3 +# file_extension: .py +# mimetype: text/x-python +# name: python +# nbconvert_exporter: python +# pygments_lexer: ipython3 +# version: 3.5.2 +# --- + +# ## Show LaTeX equation +# +# + +from IPython.display import Latex +Latex(r"""\begin{eqnarray} +\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\ +\nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\ +\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\ +\nabla \cdot \vec{\mathbf{B}} & = 0 +\end{eqnarray}""") + +# %%latex +\begin{align} +\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\ +\nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\ +\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\ +\nabla \cdot \vec{\mathbf{B}} & = 0 +\end{align} + +# ## Audio +# + +from IPython.display import Audio +Audio(url="http://www.nch.com.au/acm/8k16bitpcm.wav") + +# + +import numpy as np +max_time = 3 +f1 = 220.0 +f2 = 224.0 +rate = 8000.0 +L = 3 +times = np.linspace(0,L,rate*L) +signal = np.sin(2*np.pi*f1*times) + np.sin(2*np.pi*f2*times) + +Audio(data=signal, rate=rate) +# - + +# ## External sites + +# + {"scrolled": true} +from IPython.display import IFrame +IFrame('https://jupyter.org', width='100%', height=350) +# - + +# ## References +# +# * https://nbviewer.jupyter.org/github/ipython/ipython/blob/master/examples/IPython%20Kernel/Index.ipynb