摘要: pytorch实现卷积神经网络 阅读全文
posted @ 2021-03-06 14:10 polyAI 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 标准输出和标准错误(通常缩写为 和`stderr print() stdout stderr stdout stderr 交互式窗口`。 | ① | 函数 | | | | | ② | 定义在 模块中,它是一个 stream对象 。调用它的 函数将打印出你给它的任何字符串,然后返回输出的长度。事实上, 阅读全文
posted @ 2021-02-19 11:34 polyAI 阅读(833) 评论(0) 推荐(0) 编辑
摘要: 常见特殊方法 python里面最常见和常用的特殊方法莫过于 了. 除了它之外还有一些相对常见的,见下表: | 备注 | 欲实现… | 具体实现… | Python内部调用… | | : : | : | : | : | | ① | 初始化一个实例对象 | | | | ② | 字符串的 呈现方式 | | 阅读全文
posted @ 2021-02-18 14:04 polyAI 阅读(347) 评论(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 阅读(246) 评论(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 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 1. 为何不采用 one hot 向量 假设词典中不同词的数量(词典大小)为 ,每个词可以和从 到 的连续整数一一对应。这些与词对应的整数叫做 词的索引 。 假设一个词的索引为 ,为了得到该词的 向量表示,我们创建一个全 0 的长为 的向量,并将其第 位设成 。这样一来,每个词就表示成了一个长度为 阅读全文
posted @ 2021-02-10 10:41 polyAI 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 关于MLE、MAP、Bayesian概念的理解 阅读全文
posted @ 2021-02-05 19:44 polyAI 阅读(1662) 评论(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 阅读(3689) 评论(0) 推荐(2) 编辑
摘要: rdkit有一个很炫酷的功能,那就是能可视化显示两个分子的相似性。 以下面两个分子为例: 计算相似度 from rdkit import Chem from rdkit.Chem import AllChem, DataStructs from rdkit.Chem.Fraggle import F 阅读全文
posted @ 2021-01-20 14:32 polyAI 阅读(952) 评论(1) 推荐(0) 编辑
摘要: 在计算集群提交任务时使用到了GPU,提示如下错误: The NVIDIA driver on your system is too old (found version 9000). Please update your GPU driver by downloading and installin 阅读全文
posted @ 2021-01-19 13:13 polyAI 阅读(5372) 评论(0) 推荐(0) 编辑