当前位置:网站首页>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)
边栏推荐
- ACM MM 2022 | Cloud2Sketch: Painting with clouds in the sky, AI brush strokes
- 论文解读(DropEdge)《DropEdge: Towards Deep Graph Convolutional Networks on Node Classification》
- Simulation of Water Temperature Control System Based on Fuzzy PID Controller
- Lyapp exponents and bifurcation diagrams for fractional chaotic systems
- Ali Ermi: Without accept, can a TCP connection be established?
- Word文档怎么输入无穷大符号∞
- 什么是源文件?
- FET Mosfet Leiditech corresponds to Infineon Infineon
- supervisor 命令操作大全「建议收藏」
- 6个规则去净化你的代码
猜你喜欢

威纶通触摸屏制作自定义弹出窗口的具体方法(3种)
![[Generic Programming] Full Detailed Explanation of Templates](/img/9d/7864f999cb2e4edda2ee7723558135.png)
[Generic Programming] Full Detailed Explanation of Templates

Byte side: Can TCP and UDP use the same port?

knn到底咋回事?

AI识万物:从0搭建和部署手语识别系统

DSPE-PEG-PDP, DSPE-PEG-OPSS, phospholipid-polyethylene glycol-mercaptopyridine reduce the immunogenicity of peptides
![[corctf 2022] section](/img/03/ee1ead55805a2ac690ec79c675c3e6.png)
[corctf 2022] section

【双链表增删查改接口的实现】

小黑leetcode清爽雨天之旅,刚吃完宇飞牛肉面、麻辣烫和啤酒:112. 路径总和

SQLi-LABS Page-2 (Adv Injections)
随机推荐
蔚来杯2022牛客暑期多校训练营7 CFGJ
浅谈Numpy中的shape、reshape函数的区别
Puyuan Jingdian turned losses into profits in the first half of the year, and high-end products continued to develop!Are you optimistic about "Huawei" in the instrument industry?
NetCore路由的Endpoint模式
必看设计干货|易知微设计师是怎么做标准可视化设计服务的?
PMP daily practice | didn't lost a 8.9 (including agile + multi-select)
Ali Ermi: Without accept, can a TCP connection be established?
Jensen (琴生) 不等式
LoRa Basics无线通信技术和应用案例详解
MySQL跨表、多表更新SQL语句总结
Hessian Matrix 海森矩阵
PMP每日一练 | 考试不迷路-8.9(包含敏捷+多选)
Number of daffodils within a thousand
MySQL:错误1153(08S01):得到的数据包大于“ max_allowed_packet”字节
TF中使用zeros(),ones(), fill()方法生成数据
Word怎么设置图片衬于文字下方?两种方法教你设置Word图片衬于文字下方
gmail+mtalk配合打免费网络电话。
蓝牙模块的分类和对应的属性特点
windos安装Mysql8.0,及解决重新登录异常问题 ERROR 1045 (28000)
SecureCRT强制卸载