- 博客(4)
- 收藏
- 关注
原创 activation function
From y = To y = h(b+w1xw+w2x2) h(x) = this is a huge concept changing: x1, x2 areinput samples; w1,w2 are weight; b is offset h() is function that activation function y is output
2019-04-23 09:52:51 184
原创 NUMPY COMPRESS
import numpy as np A = np.array([[1,2],[13,4],[5,6]]) print(A.shape) b = np.compress([0,1],A,axis=0) #compress is something like'bool' picking, array A has 3 lines, 2 columns, when axis= 0, it go...
2019-04-14 19:38:26 421
原创 np.unravel_index()
import numpy as np nda1 = np.array([[10,13,12],[13,14,15],[19,17,18]]) print(np.argmax(nda1)) list1 = np.argmax(nda1,axis=1) # list1 is the list of Max position in each dimension(position in its o...
2019-04-13 22:19:42 899
原创 numpy keepdims
import numpy as np x= np.random.randn(3,4,5) print(x) print(x.shape) print(np.sum(x,axis=1)) print(np.sum(x,axis=1,keepdims=True)) # keepdims = True will keep the orignal ndarray structure #axis = 1...
2019-04-13 19:53:17 102
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人