摘要: 在使用GPU训练神经网络模型时,可能会出现GPU利用率较低的情况: 可以通过以下几种方式解决: 1: 这个nvidia forum中提到,应该是GPU默认打开了ECC(error correcting code, 错误检查和纠正),会占用显存和降低显卡性能,打开Persistence Mode En 阅读全文
posted @ 2019-12-27 16:33 寒杰士 阅读(2023) 评论(0) 推荐(0) 编辑
摘要: The main idea is that you will run a “headless” notebook from your server, but have the graphical interface (GUI) show up in your local machine’s web 阅读全文
posted @ 2019-12-18 16:36 寒杰士 阅读(751) 评论(0) 推荐(0) 编辑
摘要: Now, I have three different vocab.txt (glove, tencent.ai, fasttext). Target: use these vocab.txt to init jieba object in one python file. Method: if d 阅读全文
posted @ 2019-10-17 17:50 寒杰士 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Micro Average vs Macro average Precision and recall are then defined as: Recall in this context is also referred to as the true positive rate or sensi 阅读全文
posted @ 2018-05-07 14:06 寒杰士 阅读(1294) 评论(0) 推荐(0) 编辑
摘要: AP算法简介 AP聚类一般翻译为近邻传播聚类,07年被提出,其优点有: 1. 不需要制定最终聚类族的个数 2. 已有的数据点作为最终的聚类中心,而不是新生成一个族中心。 3. 模型对数据的初始值不敏感。 4. 对初始相似度矩阵数据的对称性没有要求。 5. 相比与k-centers聚类方法,其结果的平 阅读全文
posted @ 2018-05-01 10:27 寒杰士 阅读(3407) 评论(0) 推荐(0) 编辑
摘要: TFIDF介绍 现在有一篇长文《中国的蜜蜂养殖》,用计算机提取它的关键词。 1、词频:如果某个词很重要,它应该在这篇文章中多次出现。我们进行"词频"(Term Frequency,缩写为TF)统计。 2、停用词:结果你肯定猜到了,出现次数最多的词是 "的"、"是"、"在" 这一类最常用的词。它们叫做 阅读全文
posted @ 2018-04-30 20:07 寒杰士 阅读(25967) 评论(2) 推荐(2) 编辑
摘要: Private, protected and public in Python In C++ and Java, things are pretty straight-forward. There are 3 magical and easy to remember access modifiers 阅读全文
posted @ 2018-04-29 23:13 寒杰士 阅读(1098) 评论(1) 推荐(1) 编辑
摘要: Upper Triangular Matrix Vectorization Does PyTorch has the function that would return me the vectorized upper triangular matrix?For example, I have Te 阅读全文
posted @ 2018-04-25 22:35 寒杰士 阅读(714) 评论(0) 推荐(0) 编辑
摘要: Implement "same" padding for convolution operations mimics TensorFlow SAME padding (I'm writing it down into the functional interface, so that nn.Conv 阅读全文
posted @ 2018-04-25 22:10 寒杰士 阅读(5559) 评论(0) 推荐(0) 编辑
摘要: 特性property 1:什么是特性property property是一种特殊的属性,访问它时会执行一段功能(函数)然后返回值。 注意:此时的特性arear和perimeter不能被赋值 2: 为什么要用property 将一个类的函数定义成特性以后,对象再去使用的时候obj.name,根本无法察 阅读全文
posted @ 2018-04-24 14:06 寒杰士 阅读(410) 评论(0) 推荐(0) 编辑