https://www.python.org/doc/
《Python编程:从入门到实践》速查表
https://code.visualstudio.com/docs#vscode
https://matplotlib.org/contents.html
Top 50 matplotlib Visualizations – The Master Plots (with full python code)
https://numpy.org/devdocs/
英文文档:https://pytorch.org/docs/stable/index.html
中文文档:https://pytorch-cn.readthedocs.io/zh/latest/package_references/torch/
https://scikit-image.org/docs/stable/
https://docs.python.org/3.5/library/pickle.html
https://pypi.org/project/easydict/1.2/
https://docs.python.org/3/library/os.html?highlight=os#module-os
https://docs.python.org/3/library/sys.html?highlight=sys#module-sys
https://docs.python.org/3/library/argparse.html?highlight=argparse#module-argparse
https://github.com/google/python-fire/blob/master/docs/guide.md
https://docs.python.org/3.6/howto/logging.html
https://tensorboardx.readthedocs.io/en/latest/tutorial.html
https://pypi.org/project/tqdm/
https://docs.python.org/3/library/glob.html?highlight=glob#module-glob
https://docs.python.org/3/library/re.html
https://docs.python.org/3/library/io.html?highlight=io#module-io
https://docs.python.org/3/library/time.html?highlight=time#module-time
https://docs.python.org/3/library/datetime.html?highlight=datetime#module-datetime
http://numba.pydata.org/
import numpy as np
import numba
from numba import jit
print(numba.__version__)
@jit(nopython=True)
'''
The nopython=True option requires that the function be fully compiled
'''
def go_fast(a): # Function is compiled to machine code when called the first time
trace = 0
# assuming square input matrix
for i in range(a.shape[0]): # Numba likes loops
trace += np.tanh(a[i, i]) # Numba likes NumPy functions
return a + trace # Numba likes NumPy broadcasting
x = np.arange(100).reshape(10, 10)
go_fast(x)
go_fast(2*x)
%timeit go_fast(x)
np.testing.assert_array_equal(go_fast(x), go_fast.py_func(x))
%timeit go_fast.py_func(x)
def go_numpy(a):
return a + np.tanh(np.diagonal(a)).sum()
np.testing.assert_array_equal(go_numpy(x), go_fast(x))
%timeit go_numpy(x)