截断正态分布(Truncated normal distribution)nn.init.trunc_normal_
截断正态分布概念:
Normal Distribution 称为正态分布,也称为高斯分布,Truncated Normal Distribution一般翻译为截断正态分布,也有称为截尾正态分布。
截断正态分布是截断分布(Truncated Distribution)的一种,那么截断分布是什么?截断分布是指,限制变量xx 取值范围(scope)的一种分布。例如,限制x取值在0到50之间,即{0<x<50}。因此,根据限制条件的不同,截断分布可以分为:
- 2.1 限制取值上限,例如,负无穷<x<50
- 2.2 限制取值下限,例如,0<x<正无穷
- 2.3 上限下限取值都限制,例如,0<x<50
正态分布则可视为不进行任何截断的截断正态分布,也即自变量的取值为负无穷到正无穷;例如下图,我们将正态分布的变量范围限制在【-3,3】内,那么我们就说我们截断了正态分布
想要截断范围的正态分布的意图
例如:想要去拟合数据,根据观察原始数据分布在1的左右,在使用GAN生成数据的时候发现拟合不到,那么猜想可能是我生成虚假数据的时候范围有问题,所以想要限制范围的正态分布
使用(可以规定正态分布的范围,均值,标准差...)
def trunc_normal_(tensor: Tensor, mean: float = 0., std: float = 1., a: float = -2., b: float = 2.) -> Tensor:
Args:tensor: an n-dimensional `torch.Tensor`mean: the mean of the normal distributionstd: the standard deviation of the normal distributiona: the minimum cutoff valueb: the maximum cutoff valueExamples:>>> w = torch.empty(3, 5)>>> nn.init.trunc_normal_(w) """
截断正态分布(Truncated normal distribution)nn.init.trunc_normal_相关推荐
- 正态分布(Normal distribution)与高斯分布(Gaussian distribution)
正态分布(Normal distribution)又名高斯分布(Gaussian distribution),是一个在数学.物理及工程等领域都非常重要的概率分布,在统计学的许多方面有着重大的影响力. ...
- 正态分布(Normal distribution)又名高斯分布(Gaussian distribution)
正态分布(Normal distribution)又名高斯分布(Gaussian distribution),是一个在数学.物理及工程等领域都非常重要的概率分布,在统计学的许多方面有着重大的影响力. ...
- 正态分布(normal distribution)与偏态分布(skewed distribution)
分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow 也欢迎大家转载本篇文章.分享知识,造福人民,实现我们中华民族伟大复兴! 存在正太 ...
- [转载] python numpy.random.randn()与numpy.random.rand()的区别 (正态分布公式)(标准正态分布 standard normal distribution
参考链接: Python中的numpy.random.randn 引用文章: numpy.random.randn()与numpy.random.rand()的区别 https://www.cnblo ...
- tableau linux无网络安装_举个栗子!Tableau 技巧(110)两种方法实现正态分布 Normal distribution...
关于正态分布 正态分布(Normal distribution),也称"常态分布",又名高斯分布(Gaussian distribution).正态分布是统计学中一个重要的概率分布 ...
- C++生成随机数:高斯/正态分布(gaussian/normal distribution)
高斯分布也称为正态分布(normal distribution) 常用的成熟的生成高斯分布随机数序列的方法由Marsaglia和Bray在1964年提出,C++版本如下: #include <s ...
- 黎曼和 Riemann Sum ,黎曼积分Riemann Integral,正态分布normal distribution
这里有一块形状不规则的土地,要测量它的面积,怎么办呢?一个叫黎曼的德国数学家(Bernhard Riemann, 1826-1866),他想了个办法:将这不规则图形切成一条条的小长条儿,然后将这个长条 ...
- Normal Distribution Chi-squared Distribution t distribution F-distribution
最近看论文发现经常有一些统计学的内容,但是这部分内容之前一直都是很薄弱的地方,不敢涉猎,现在学习一下,并整理下来,方便以后查阅. Normal Distribution & Chi-squar ...
- 正态分布初始化 torch.nn.Embedding.weight()与torch.nn.init.normal()的验证对比
torch.nn.Embedding.weight(num_embeddings, embedding_dim) 随机初始化,生成标准正态分布N(0,1)N(0,1)N(0,1)的张量Tensor t ...
最新文章
- 架构师之路 — 分布式系统 — 分布式事务难题
- list循环赋值_一步一步学Python3(小学生也适用) 第十七篇:循环语句for in循环
- hspice2016安装教程
- a标签连接空标签的方法
- BTrace使用小结
- pandas基础(part3)--描述性统计
- oracle日期数据格式,oracle日期数据格式
- php 修改html文件内容吗,请问你们怎么将html的文件的内容改变为php
- Windows下编译openssl库
- SDP协议 学习笔记
- cocos2d-x 之 CCProgressTimer
- 重命名数据库解决“无法用排他锁锁定该数据库”
- 企业应该如何运用商业智能
- Hibernate教程——史上最全面的项目和教程集合
- 数据通信技术初级工程师证题库
- 走向世界中的我国摄影测量与遥感 ——访中国测绘学会理事长、国家测绘局原副局长杨凯
- 【多任务模型】Progressive Layered Extraction: A Novel Multi-Task Learning Model for Personalized(RecSys‘20)
- Ubuntu安装布谷鸟沙盒
- 没事干的时候可以看这些,超全超多…
- 怎么登录163vip邮箱,登录方式有哪些?
热门文章
- 使用Maven导出工程依赖的jar包
- Jeecg社区wiki在开放,终于可以在线看文档啦!!!
- /etc/fstab文件分析(第二版)
- Mac安装与配置idea及tomcat
- Redis管道(Pipeline)详解
- 十二. python面向对象主动调用其他类
- Windows Moible, Wince 使用.NET Compact Framework的进行蓝牙(Bluetooth)设备配对的开发
- centos7将网卡名字改成eth样式
- Java千百问_06数据结构(014)_java数组如何存储在内存中
- storm生产环境部署问题