当前位置:网站首页>random.normal() and random.truncated_normal() in TF
random.normal() and random.truncated_normal() in TF
2022-08-09 23:11:00 【phac123】
Brief
The tf.random.normal() and tf.random.truncated_normal() methods are commonly used in TF to create Tensors that conform to the normal distribution.
The difference between them is that the latter guarantees the value of randomly generated dataBetween (μ-2σ, μ+2σ), if the generated data exceeds this range, re-generate.
μ: mean, σ: standard deviation
Code
import tensorflow as tfd = tf.random.normal([2,span> 2], mean = 0.5, stddev = 1)print("d: ", d)e = tf.random.truncated_normal([2,span> 2], mean = 0.5, stddev = 1)print("e: ", e)
边栏推荐
- TF中random.normal()与random.truncated_normal()
- Optimization of SQL Statements and Indexes
- 必看设计干货|易知微设计师是怎么做标准可视化设计服务的?
- Install Mysql8.0 on windos, and solve the problem of re-login exception ERROR 1045 (28000)
- CVPR22 Oral|通过多尺度token聚合分流自注意力,代码已开源
- MySQL慢查询的多个原因
- NetCore路由的Endpoint模式
- Interviewer: How to deal with Redis big key?
- TF使用constant生成数据
- [Essay] To the friends of the 19th issue
猜你喜欢
随机推荐
同步锁synchronized追本溯源
Definition and Basic Operations of Sequence Tables
【stack】【queue】【priority_queue】【deque】详解
knn到底咋回事?
在VMware上安装win虚拟机
PHP 二维数组根据某个字段排序
人人都可以DIY的大玩具,宏光MINIEV GAMEBOY产品力强,出行新装备
Word箭头上面怎么打字
Visual studio 2022 debugging skills introduction
LoRa Basics无线通信技术和应用案例详解
简单问题窥见数学
[corctf 2022] section
Beat the interviewer, the CURD system can also make technical content
【双链表增删查改接口的实现】
Several ways to draw timeline diagrams
凸集与凸函数
np中的round函数,ceil函数与floor函数
Cholesterol-PEG-Thiol, CLS-PEG-SH, Cholesterol-PEG-Sulfhydryl for improved solubility
什么是源文件?
Referenced file contains errors 完美解决方法








