1、(Bayes)贝叶斯定理 $P(A|B)=\frac{P(B|A)P(A))}{P(B)}$(“后验概率=标准似然度 先验概率”) 2、伯努利分布 伯努利分布(英语:Bernoulli distribution),又名两点分布或者0 1分布,是一个离散型概率分布。 概率质量函数:$f_{X}(x ...
分类:
其他好文 时间:
2020-04-30 19:27:03
阅读次数:
86
torch.mm(mat1, mat2) performs a matrix multiplication of mat1 and mat2 a = torch.randint(0, 5, (2, 3)) # tensor([[3, 3, 2], # [2, 2, 2]]) b = torch.ra ...
分类:
其他好文 时间:
2020-04-30 19:10:56
阅读次数:
51
Pandas 可以对数据进行导入、清洗、处理、统计和输出 在 NumPy 中数据结构是围绕 ndarray 展开的 那么在 Pandas 中的Series 和 DataFrame 这两个核心数据结构,他们分别代表着一维的序列和二维的表结构 Series 是个定长的字典序列 说是定长是因为在存储的时候 ...
分类:
编程语言 时间:
2020-04-30 11:54:00
阅读次数:
124
4.1 series对象的查看 s = pd.Series(np.random.randn(5)) s.axes#索引信息 s.empty#判断整体是否为空 s.ndim#返回对象维度 s.size#返回对象长度,或则说元素个数 s.values#以数组形式返回系列中的实际数据值 4.2 Dataf ...
分类:
其他好文 时间:
2020-04-30 11:34:55
阅读次数:
76
Math类:用于执行数学计算 PI属性,获取圆周率 random():获得一个0-1之间的随机浮点 floor():向下取整 ceile():向上取整 round():四舍五入 max():最大值 min():最小值 power():获得幂次方 方法可直接在main方法中调用,因为源码写的是stat ...
分类:
其他好文 时间:
2020-04-29 21:52:13
阅读次数:
81
摘要 1. Logistic回归分类 2. 梯度下降法 3. 代码实现与解释 Logistic回归 逻辑斯特回归(logistic regression)是一种非常经典的分类方法。其用到的分类函数一般为Sigmoid函数,其函数形式为: 其图形表示如下: 从图中我们可以看到,当z=0时,函数值为0. ...
分类:
其他好文 时间:
2020-04-29 18:40:46
阅读次数:
77
原文链接:https://www.cnblogs.com/sunshineliulu/p/8984704.html 1、查看当前操作系统内核信息 uname -a $ uname -a Linux vm-web 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 ...
分类:
系统相关 时间:
2020-04-29 18:30:44
阅读次数:
121
介绍 Java 13 中,HashMap里非常关键的两个函数 get和resize的源码。 ...
分类:
编程语言 时间:
2020-04-28 23:30:10
阅读次数:
129
一句话安装:sudo apt-get install kazam#错误:安装kazam未能定位软件包 无法定位软件包的问题,大部分都是没有更新Ubuntu的安装源: sudo add-apt-repository ppa:kazam-team/stable-series sudo apt-get u ...
分类:
系统相关 时间:
2020-04-28 09:28:01
阅读次数:
168
This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is filled in from the fi ...
分类:
其他好文 时间:
2020-04-28 00:48:51
阅读次数:
67