Sunday, December 31, 2006

Neural Networks Attempt in Haskell (Quite a Failure Though...)

I ported the python version of BPNN into Haskell. Gotta admit that the porting was really a piece of cake: writing the Haskell code is just liking copying a mathematics textbook! However, it did killed some of my brain cells to try to use maps and folds.

Finally I realized that the double loops in the python code was trying to do matrix and vector multiplication... and after several hours' work I fixed my program to work properly. Though the learning procedure seems to converge slower than the python version, due to some unknown reasons.

Well, now the program is killing my memory chips... and the hard disk for virtual memory's sake. It runs quite slow when I try to use it to predict the average GDP of China... perhaps it's actually too huge for it. However, I'll try it thru the night. Let's see tomorrow morning if it eventually gives out any results. It's consuming more than 70% of the mem, while only 0.7% of the CPU time. I don't give it too much hope though.

Just a try. And seems to be quite a failure. But Haskell seems really fun when used this way~~

Friday, December 29, 2006

The Awkward Google AdSense

My first blog post is a metaphor on some Linux kernel-related project we're working on. Well, the metaphor mentioned (and unfortunately quite a few times...) smoking. You know what? The AdSense put all kinds of cigarette ads on to my site!

How awkward! I don't want anything to do with these unhealthy garbages! What can I do with it? Anyone out there who can help? Or should I just try to get in touch with those Google guys?
一个关于开源的寓言

一个城市里有两个最受欢迎的大商场,一个是无烟的,一个是允许顾客吸烟的。

有一天,有一个人要在那个无烟的商场里面开一家店,希望能够招待吸烟的顾客。他自己运来材料在自己的店周围建起了隔离装置和空气清新设备,以便在店内抽烟的顾客可以很自由的抽烟,不会影响到店外不希望抽二手烟的顾客。

于是,这个希望靠这样的手段,帮助这个无烟商场在不抽烟的顾客以外,进一步招揽到抽烟的顾客。

然而,这样的美好愿望真的现实吗?

P.S.:现在正在做的Linux内核兼容Windows程序,感觉就像是这样在一个无烟商场内硬要开一个允许吸烟的商店啊!