- 博客(7)
- 收藏
- 关注
原创 SVG,plot_model 绘图
%matplotlib inlineimport osos.environ['PATH'] = os.environ['PATH'] + (';c:\\Program Files (x86)\\Graphviz2.38\\bin\\')plot_model(FRmodel, to_file = 'FRmodel.png')SVG(model_to_dot(FRmodel).create(p...
2020-04-14 23:40:00 589
原创 关于安装python opencv
pip install --user -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python使用此链接下载
2020-04-14 15:03:03 155
原创 python clock 更新
time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.perf_counter or ti...
2020-03-26 10:00:54 177
原创 np.eye()应用实例
1.a = np.eye(4)print(a)[[1. 0. 0. 0.][0. 1. 0. 0.][0. 0. 1. 0.][0. 0. 0. 1.]]2.a0 = np.eye(4,0)a1 = np.eye(4,1)a2 = np.eye(4,2)a3 = np.eye(4,3)print("a0 = " + str(a0))print("a1 = " + str(...
2020-03-25 21:39:50 725
原创 python 切片
1,当Y 的最外维 只有一个元素时Y = np.array([[0,1,2,3,4,5,6]])print(Y[0])print("Y[0,1]=" + str(Y[0,1]))print("Y[:,1]=" + str(Y[:,1]))print("type(Y[0,1])=" + str(type(Y[0,1])))print("type(Y[:,1])=" + str(type(...
2020-03-25 20:03:41 88
原创 python array list
a =np.array([[1,2,3,4,5,6,7,8]])b = ([[1,2,3,4,5,6,7,8]])c = np.multiply(a , b)print(type(a))print(type(b))print(type(c))<class ‘numpy.ndarray’><class ‘list’><class ‘numpy.ndarr...
2020-03-16 22:30:49 91
原创 Python np.random.seed 理解
Python np.random.seed 理解jupyter notebook 中测试N = 5t = np.random.randn(N)*0.2r = np.random.randn(N)*0.2print(t)print®```python
2020-02-29 14:20:30 466 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人