当前位置:网站首页>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)
边栏推荐
- SecureCRT强制卸载
- 浅谈Numpy中的shape、reshape函数的区别
- 哪款C语言编译器(IDE)适合初学者?
- Visual studio 2022 debugging skills introduction
- Referenced file contains errors 完美解决方法
- 《强化学习周刊》第57期:DL-DRL、FedDRL & Deep VULMAN
- 万字总结:分布式系统的38个知识点
- Excel如何打出正负号?Excel打出正负号的方法
- Ali Ermi: Without accept, can a TCP connection be established?
- 消防安全培训|“蓝朋友”,开课了!
猜你喜欢

DSPE-PEG-PDP, DSPE-PEG-OPSS, phospholipid-polyethylene glycol-mercaptopyridine reduce the immunogenicity of peptides

消防安全培训|“蓝朋友”,开课了!

必看设计干货|易知微设计师是怎么做标准可视化设计服务的?

宝塔实测-搭建LightPicture开源图床系统

万字总结:分布式系统的38个知识点

ACM MM 2022 | Cloud2Sketch: 长空云作画,AI笔生花

cadence中复制一部分PCB到另一个PCB中去

AI+医疗:使用神经网络进行医学影像识别分析

几种绘制时间线图的方法

【双链表增删查改接口的实现】
随机推荐
Word箭头上面怎么打字
如何让您的公司内容满足 GDPR 合规性
别叫我玩,我要考PMP:考PMP选择机构需要了解的那些事儿
在VMware上安装win虚拟机
Word第一页空白页怎么删除?删除Word第一页空白页方法教程
基于Docker构建MySQL主从复制数据库
Interviewer: How to deal with Redis big key?
C语言预处理命令是什么?
linux定时执行sql文件[通俗易懂]
【stack】【queue】【priority_queue】【deque】Detailed explanation
STC8H开发(十五): GPIO驱动Ci24R1无线模块
论文解读(DropEdge)《DropEdge: Towards Deep Graph Convolutional Networks on Node Classification》
windos安装Mysql8.0,及解决重新登录异常问题 ERROR 1045 (28000)
SQL语句及索引的优化
Endpoint mode for NetCore routing
json事例
必看设计干货|易知微设计师是怎么做标准可视化设计服务的?
How to fix Windows 11 not finding files
编程时请选择正确的输入法,严格区分中英文
10个 Istio 流量管理 最常用的例子,你知道几个?