2012年8月2日

贝叶斯估计浅析

摘要: 贝叶斯方法有着非常广泛的应用,但是初学者容易被里面的概率公式的给吓到,以至于望而却步。所以有大师专门写个tutorial,命名为“bayesian inference with tears”。 我本人也深受其苦,多次尝试学习而不得其门而入。终于有一天,一种醍醐灌顶的感觉在脑海中出现,思路一下子清晰了,原来bayes估计竟然是这么一回事。本blog只是为了让还处在痛苦的学习过程中的人能够快速把握概念,理清思路,高手请绕道而行 :)贝叶斯估计要解决的是概率估计问题,也就是说,已知一些样本,他们满足某种分布,需要估计这种分布的参数或者新数据出现的概率。说到概率估计,就不能不先说说最大似然方法。最大似 阅读全文

posted @ 2012-08-02 00:17 xueliangliu 阅读(16408) 评论(3) 推荐(1) 编辑

2012年8月1日

pLSA 浅析

摘要: 刚读博的时候,就读到过pLSA的文章,当时对里面的概率,分布什么的,一头雾水。三年过去了,整理以往paper又发现当初打印的文章,竟然一下子看懂了。特意整理下,希望为以后看到这个东西的人,有点参考的作用。PLSA是个从文档中发现topic的算法,它认为文本可以分三个层次来理解。1,文档(d);2,主题(z);3,单词(w),既一个文档包含若干主题,每个主题包含若干单词。从概率层面来讲,这里的包含其实是某种分布。也就是说,一个文档可以看做在一些主题上面的分布(P(z|d),而每个主题看做在单词上面的某种分布(P(w|z))。 pLSA就是对这些分布进行建模。相信大部分人都可能理解之前的这些内容, 阅读全文

posted @ 2012-08-01 02:28 xueliangliu 阅读(1799) 评论(0) 推荐(0) 编辑

2012年6月5日

google Image search API

摘要: A python client to query image from google. Though the api service has been tagged as (Deprecated), it will work before a new version is released. '''Loosely based on Mike Verdone's excellent twitt... 阅读全文

posted @ 2012-06-05 17:21 xueliangliu 阅读(567) 评论(0) 推荐(0) 编辑

2012年5月4日

google release its input tools

摘要: It is a real good news, the google official cloud Input editor(chrome) is available onlinehttps://chrome.google.com/webstore/detail/mclkkofklkfljcocdinagocijmpgbhab 阅读全文

posted @ 2012-05-04 18:02 xueliangliu 阅读(140) 评论(0) 推荐(0) 编辑

2012年4月6日

solution for "cannot find vcvarsall.bat" in Python

摘要: When building some package with python in windows, the command ispython setup.py buildHowever, if you use Visual Studio as the compiler, sometime there is an error shown as :error: Unable to find vcv... 阅读全文

posted @ 2012-04-06 17:58 xueliangliu 阅读(261) 评论(0) 推荐(0) 编辑

2011年12月9日

argsort in Python

摘要: def argsort(mylist): return sorted(range(len(mylist)), key=mylist.__getitem__)or return [i for (v, i) in sorted((v, i) for (i, v) in enumerate(seq))] 阅读全文

posted @ 2011-12-09 21:11 xueliangliu 阅读(433) 评论(0) 推荐(0) 编辑

2011年11月23日

fast debug a program with GDB

摘要: I have used VS.net since VC 6.0 version. The amazing feature in VS is dynamically debugging. Just run it and IDE will stop if something is wrong. At that time if press "retry". 阅读全文

posted @ 2011-11-23 22:05 xueliangliu 阅读(112) 评论(0) 推荐(0) 编辑

2011年6月9日

how to create html from tex source file

摘要: With latex suite, such as miktex, tex file can be converted to pdf file.However, if you want to create html file from tex, the tool tex2page is a ideal tool.Tex2page is a built-in tool in package Rack... 阅读全文

posted @ 2011-06-09 02:57 xueliangliu 阅读(198) 评论(0) 推荐(0) 编辑

2011年3月18日

谈谈google Transliteration

摘要: In the past weeks, I spent much leisure time on this topic, google transliteration, which aims at translating what you input from a language to other in real time. Obvious it is a good news for those ... 阅读全文

posted @ 2011-03-18 18:53 xueliangliu 阅读(238) 评论(0) 推荐(0) 编辑

2011年3月17日

google云输入法以及在chrome中的插件

摘要: google终于推出的了它的云输入法,速度比qq,sougou要快几个数量级。古奥里面也给出了一个输入汉语的方法,http://www.guao.hk/posts/google-transliterate-api-updates.html。不过那种传统的booklet的方式始终是不爽,其实chrome早已经有了相应的扩展https://chrome.google.com/extensions/de... 阅读全文

posted @ 2011-03-17 06:05 xueliangliu 阅读(304) 评论(0) 推荐(0) 编辑

导航