02 2021 档案

摘要:标准输出和标准错误(通常缩写为 和`stderr print() stdout stderr stdout stderr 交互式窗口`。 | ① | 函数 | | | | | ② | 定义在 模块中,它是一个 stream对象 。调用它的 函数将打印出你给它的任何字符串,然后返回输出的长度。事实上, 阅读全文
posted @ 2021-02-19 11:34 polyAI 阅读(1176) 评论(0) 推荐(0)
摘要:常见特殊方法 python里面最常见和常用的特殊方法莫过于 了. 除了它之外还有一些相对常见的,见下表: | 备注 | 欲实现… | 具体实现… | Python内部调用… | | : : | : | : | : | | ① | 初始化一个实例对象 | | | | ② | 字符串的 呈现方式 | | 阅读全文
posted @ 2021-02-18 14:04 polyAI 阅读(435) 评论(0) 推荐(1)
摘要:Suppose you are working with images. An image is represented as a matrix of values. Each value is a feature that is numerical, that is, values 5 and 1 阅读全文
posted @ 2021-02-13 18:18 polyAI 阅读(314) 评论(0) 推荐(0)
摘要:http://cairohy.github.io/2018/02/28/vi/VI-1/ https://zhuanlan.zhihu.com/p/49401976 一、近似推断问题 马尔科夫蒙特卡洛(MCMC)采样是近似推断(Approximate Inference)的一种重要方法,其改进包括M 阅读全文
posted @ 2021-02-13 10:58 polyAI 阅读(925) 评论(0) 推荐(0)
摘要:1. 为何不采用 one hot 向量 假设词典中不同词的数量(词典大小)为 ,每个词可以和从 到 的连续整数一一对应。这些与词对应的整数叫做 词的索引 。 假设一个词的索引为 ,为了得到该词的 向量表示,我们创建一个全 0 的长为 的向量,并将其第 位设成 。这样一来,每个词就表示成了一个长度为 阅读全文
posted @ 2021-02-10 10:41 polyAI 阅读(533) 评论(0) 推荐(0)
摘要:关于MLE、MAP、Bayesian概念的理解 阅读全文
posted @ 2021-02-05 19:44 polyAI 阅读(2362) 评论(0) 推荐(1)
摘要:介绍下pytorch的主要模块和辅助模块。 Pytorch的主要模块 PyTorch主要包括以下16个模块: 1.torch模块 torch模块本身包含了PyTorch经常使用的一些激活函数,比如Sigmoid(torch.sigmoid)、ReLU(torch.relu)和Tanh(torch.t 阅读全文
posted @ 2021-02-01 15:18 polyAI 阅读(5014) 评论(0) 推荐(3)