算法
白夜泊
这个作者很懒,什么都没留下…
展开
-
语言模型 Language Madel 与 word2vec
https://www.cnblogs.com/ooon/p/5558119.html转载 2019-07-02 08:58:55 · 360 阅读 · 0 评论 -
AI人工智能相关概念及学习网站分享
https://www.jianshu.com/p/471d9bfbd72f原创 2019-07-28 10:26:00 · 183 阅读 · 0 评论 -
什么是P问题、NP问题和NPC问题
http://www.matrix67.com/blog/archives/105原创 2019-07-21 22:43:02 · 150 阅读 · 0 评论 -
word2vec模型cbow与skip-gram的比较
word2vec模型cbow与skip-gram的比较(转自https://www.cnblogs.com/june0507/p/9412989.html)cbow和skip-gram都是在word2vec中用于将文本进行向量表示的实现方法,具体的算法实现细节可以去看word2vec的原理介绍文章。我们这里大体讲下两者的区别,尤其注意在使用当中的不同特点。在cbow方法中,是用周围词预测中心词...转载 2019-07-30 13:39:23 · 1120 阅读 · 0 评论 -
Word2Vec保存词向量的方法
1.以model.save()方法保存词向量保存词向量‘’’import gensimmodel = gensim.models.Word2Vec(documents, size=300)model.train(documents, total_examples=len(documents), epochs=10)model.save("…/input/Word2vec.w2v")‘...转载 2019-07-30 12:04:28 · 2005 阅读 · 0 评论 -
word2vec参数理解
word2vec参数理解(转载自https://www.cnblogs.com/kjkj/p/9825418.html)class gensim.models.word2vec.Word2Vec(sentences=None,size=100,alpha=0.025,window=5, min_count=5, max_vocab_size=None, sample=0.001,seed=1, ...转载 2019-07-29 13:53:56 · 1047 阅读 · 1 评论 -
[python]521. Remove Duplicate Numbers in Array
521. Remove Duplicate Numbers in Array中文EnglishGiven an array of integers, remove the duplicate numbers in it.You should:Do it in place in the array.Move the unique numbers to the front of the arr...原创 2019-07-12 11:18:33 · 158 阅读 · 0 评论 -
旅行商(TSP)问题专题——多种方法对比
https://www.jianshu.com/p/43aa80069265原创 2019-07-15 22:33:15 · 2577 阅读 · 0 评论 -
[python]57. 3Sum
57. 3SumGiven an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.样例Example 1:Input:[2,7,11,15]Outp...原创 2019-07-14 10:46:22 · 118 阅读 · 0 评论 -
推荐两个关于数据结构与算法动态展示的网站
https://visualgo.net/en一个英文网站,上面有代码,有动画,有利于理解数据结构与算法原创 2019-06-28 20:34:10 · 1245 阅读 · 0 评论 -
143. Sort Colors II[python]
143. Sort Colors II中文EnglishGiven an array of n objects with k different colors (numbered from 1 to k), sort them so that objects of the same color are adjacent, with the colors in the order 1, 2, … ...原创 2019-07-13 14:30:01 · 181 阅读 · 0 评论 -
NLP语言模型的平滑问题
https://blog.csdn.net/miner_zhu/article/details/82729192原创 2019-07-09 14:59:09 · 443 阅读 · 0 评论 -
堆排序
https://blog.csdn.net/u013384984/article/details/79496052原创 2019-07-12 17:19:59 · 97 阅读 · 0 评论 -
[python]实现几种O(nlogn)的排序算法
快速排序def quicksort(A, low, high): def partition(A, low, high): i = low - 1 pivot = A[high] for j in range(low, high): ...原创 2019-07-12 17:11:41 · 731 阅读 · 0 评论 -
关于解释数据结构的几个博客收藏
哈希表https://blog.csdn.net/u011109881/article/details/80379505其中平方探测再散列,表格中H(11)-1与H(11)+1写反了原创 2019-06-27 11:38:34 · 142 阅读 · 0 评论 -
python中如何加入缓存
利用python自带的装饰器from functools import lru_cache@lru_cache(maxsize=2*10) # 设置最大缓存尤其在递归中,可显著增加程序运行速度原创 2019-06-27 14:30:18 · 1023 阅读 · 0 评论 -
关于PCA的介绍
https://blog.csdn.net/weixin_41484240/article/details/81084187转载 2019-06-27 10:10:02 · 478 阅读 · 0 评论