tensorflow API:tf.truncated_normal

来源:互联网 发布:淘宝小二介入成功率 编辑:程序博客网 时间:2024/06/10 14:47

truncated_normal(shape, mean=0.0, stddev=1.0, dtype=tf.float32, seed=None, name=None)

Outputs random values from a truncated normal distribution.

从截断正太分布产生随机数

The generated values follow a normal distribution with specified mean and standard deviation, except that values whose magnitude is more than 2 standard deviations from the mean are dropped and re-picked.

所生成的值遵循指定的平均值和标准偏差的正态分布,但其值大于平均值的2个标准偏差的值被丢弃和重新选择。

Args:  shape:   mean:   stddev:   dtype: The type of the output.  seed: A Python integer. Used to create a random seed for the distribution.  name: Returns:

seed可以查看@{tf.set_random_seed},那就看看吧