- 博客(2)
- 收藏
- 关注
原创 python—numpy知识整理
1. np.random.seed() 例如 import numpy as np num = 0 while(num < 5): np.random.seed(5) print(np.random.randn(1, 2)) num += 1 结果 [[ 0.44122749 -0.33087015]] [[ 0.44122749 -0.33087015]] [[ 0.44122749 -0.33087015]] [[ 0.44122749 -0.33087015]] [[
2020-12-17 10:51:26
176
原创 深度学习
一、np.random.randn(a,b)* 0.01随机初始化维度为(a,b)的矩阵。 为什么要乘以0.01呢?因为对于tanh和sigmoid函数若生成的Z太大,会导致斜率(梯度)太小,进而很难梯度下降。
2020-12-16 19:08:01
118
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人