Mixture

身未动,心已远

导航

2014年5月7日 #

【转】汇总:LDA理论、变形、优化、应用、工具库

摘要: 转自:http://site.douban.com/204776/widget/notes/12599608/note/287085506/#LDA理论——Topic Model相关论文汇总http://site.douban.com/204776/widget/notes/12599608/not... 阅读全文

posted @ 2014-05-07 17:26 parapax 阅读(308) 评论(0) 推荐(0) 编辑

2014年4月28日 #

Gibbs Sampling for the Uninitiated 资料

摘要: 第一个链接的读书笔记接近翻译,比较简练,贴在这里吧:http://www.crescentmoon.info/?p=504 andhttp://www.crescentmoon.info/?p=525还有一个也挺赞:http://www.xperseverance.net/blogs/2013/03... 阅读全文

posted @ 2014-04-28 18:10 parapax 阅读(291) 评论(0) 推荐(0) 编辑

2014年4月24日 #

【转】LDA

摘要: 论文看了前三个section, 然后搜资料发现了些不错的。-------------------------------------------------------------------------------------------------------------------------... 阅读全文

posted @ 2014-04-24 23:11 parapax 阅读(1261) 评论(0) 推荐(0) 编辑

【转】Dirichlet分布

摘要: 转自:http://blog.csdn.net/jiang1st2010/article/details/8841644这一系列(机器学习的数学基础)主要包括目前学习过程中回过头复习的基础数学知识的总结。基础知识:conjugate priors共轭先验 共轭先验是指这样一种概率密度:它使得后验概... 阅读全文

posted @ 2014-04-24 15:55 parapax 阅读(260) 评论(0) 推荐(0) 编辑

【转】概率主题模型简介 Introduction to Probabilistic Topic Models

摘要: 看了David M. Blei写的《Introduction to Probabilistic Topic Models》,有的地方不是很清楚,然后搜到了这篇译文,感觉很棒,转来备份一下~转载自:http://www.cnblogs.com/siegfang/archive/2013/01/30/2... 阅读全文

posted @ 2014-04-24 14:25 parapax 阅读(244) 评论(0) 推荐(0) 编辑

2014年4月8日 #

codility: Fibonacci numbers (FibFrog, Ladder)

摘要: FibFrog:The Fibonacci sequence is defined using the following recursive formula: F(0) = 0 F(1) = 1 F(M) = F(M - 1) + F(M - 2) if M >= 2A small frog wants to get to the other side of a river. The frog is initially located at one bank of the river (position −1) and wants to get to the other b... 阅读全文

posted @ 2014-04-08 10:17 parapax 阅读(2047) 评论(0) 推荐(0) 编辑

2014年4月7日 #

codility: Euclidean algorithm ( ChocolatesByNumbers, CommonPrimeDivisors)

摘要: Chocolates By NumbersTwo positive integers N and M are given. Integer N represents the number of chocolates arranged in a circle, numbered from 0 to N... 阅读全文

posted @ 2014-04-07 10:10 parapax 阅读(1513) 评论(0) 推荐(0) 编辑

effective c++ 11: Handle assignment to self in operator =

摘要: 比如有这样一个class:class A {};class B { ...private: A* a;};在写class B的赋值函数的时候,假如写成下面这样:B& B::operator=(const B& rhs) { delete a; a = new A(*rhs.a); return *this;}假如是自我赋值,那上面这个代码显然就不对了,*this和rhs是一个对象,所以如果都delete a 了下面还怎么new A(*rhs.a)呢。可以通过identity test检查是否是自我赋值:if(this==&rhs) return *this在上面那... 阅读全文

posted @ 2014-04-07 00:08 parapax 阅读(253) 评论(0) 推荐(0) 编辑

2014年4月6日 #

effective c++ 10: Have assignment operators return a reference to *this

摘要: 为了实现连锁赋值,赋值操作符需要返回一个reference指向操作符的左侧实参。就像这样:class Widget {public: ... Widget& operator=(const Widget& rhs) { ... return *this; } ...};除了标准赋值,任何赋值相关的运算都应当返回一个reference to *this。 阅读全文

posted @ 2014-04-06 23:39 parapax 阅读(140) 评论(0) 推荐(0) 编辑

effective c++ 9: Never call virtual functions during construction or destruction

摘要: 因为base class的构造函数的执行早于derived class,所以如果在构造函数里调用virtual函数,很可能derived class部分的成员变量还没初始化。并且在derived class对象的base class构造期间,对象是被看做一个base class对象的,所以显然调用virtual函数不会达到想象的效果。比较好的方式是把原本在构造函数中调用的virtual函数改为non-virtual,并通过derived lass构造函数传递信息给baseclass构造函数。比如:class Transaction {public: explicit Transactio... 阅读全文

posted @ 2014-04-06 23:33 parapax 阅读(188) 评论(0) 推荐(0) 编辑