Python 生成 -1~1 之间的随机数矩阵方法

qqarmor37980 12 0 pdf 2022-03-08 14:03:41

由于 np.random.random() 默认生成 0~1 之间的小数,因此需要转换一下-1 + 2*np.random.random

Python 生成 -1~1 之间的随机数矩阵方法

Python 生成 -1~1 之间的随机数矩阵方法

用户评论
请输入评论内容
评分:
暂无评论