摘要:
1.1.2 Building basic functions with numpy 1.1.2.2 numpy.exp, sigmoid, sigmoid gradient import numpy as np def sigmoid(x): s = 1/(1+np.exp(-x)) return 阅读全文
posted @ 2019-11-23 22:34
笔记记忆
阅读(866)
评论(0)
推荐(0)
摘要:
import numpy as np a = np.array([1,2,3,4,5,6,7,8]) #一维数组 print(a.shape[0]) #值为8,因为有8个数据 print(a.shape[1]) #IndexError: tuple index out of range a = np 阅读全文
posted @ 2019-11-23 16:53
笔记记忆
阅读(1029)
评论(0)
推荐(0)
浙公网安备 33010602011771号