Wednesday, October 29, 2008

Netflix Recommender System

Netflix is trying to motivate research in the area of recommender systems and on Oct. 2, 2006 offered $1 million to anyone that could improve upon their current recommender system by a specific measure (improve RMSE by 10%). Recently I took a look at the current standings and one team is very close (improvement around 9%). Interestingly enough they had a few papers showing how they do it.

Specifically what we are talking about is collaborative filtering. There are two main approaches, either you look for global patterns in the matrix of ratings or you use the ratings from similar items or users. BellKor (team name) was able to successfully merge these two ideas into a single solution that outperformed (at the time of submission) any other approaches using one of the two approaches.

What impressed me most about the paper I read (Factorization Meets the Neighborhood: a Multifaceted Collaborative Filtering Model) was that in addition to testing RMSE for the test, they tried to look at the users perspective. We want to know what movie to watch now. They compared other approaches against theirs on whether they would recommend in the top 5 or top 20 a movie you would watch and rate a 5. Well done. We should all keep the end user in mind.

Any one have a really good or bad experience with recommendations made by computers?

Tuesday, September 30, 2008

Do Good Grades Predict Success? (Freakonomics blog entry)

I recently read the post in the title of this blog entry at the Freakonomics blog, which I frequent. I love the question and have wondered myself some of the of the following related questions:
  • Do grades measure our understanding or ability to learn?
  • How fair is it to compare grades of different students from different schools, classes, teachers? (Some teachers are "easy" and some "hard".)
My biggest question though is: how much does school prepare us for what is to come? High school to college can be a difficult jump, but I found that being one of the top students by grade, timely completion of assignments, and understanding (in my estimation of course) did not prepare me for:
  • Looking for a job.
  • Interviewing well.
  • Being a programmer in the real-world.
I should not expect class work to prepare me for looking for jobs and interviewing, but I would have hoped that my view of life after school would have been clearer than it was. Perhaps the onus is on the student, but I think teachers can do a better a job of preparing students for careers rather than being good test takers.

Wednesday, September 10, 2008

Google Bias

In response to my post Google Wishlist, one reader wrote:
"I would love the Google search results to include more web addresses with a differing suffix than .com (i.e. .net, .org). There are a ton of sites that get overlooked because of the seemed bias that Google has for the .com sites.

"I will admit that they have done a little better on including some of these sites on more popular searches, but as a whole the .com sites seem to get the preference."

I would agree with this reader that certainly Google results are biased, as they have to give preference in some reasonable way. Now I do not believe that the suffix of a given website is used to rank the website (try a search for "Plutonium" for example and the top result as I see it is from Wikipedia.org). I do believe that the results are biased by "link popularity" or by PageRank (as explained by the founders of Google, Sergey Brin and Lawrence Page). Basically, as I understand it the basis for ranking in many search engines is based on how many links (and the "quality" of these links) that link to a domain or webpage.

The decision to go with PageRank was a good choice. It put Google on the map originally. However, there are some drawbacks for people like me. The bias towards more popular pages, means that it is more difficult to climb to the top. It is a rich get richer web world. Those that have links, are more easily found, meaning they more easily are linked to. This would explain why one would more likely see links ranked first from big name .com sites. Now if I wrote the most informative page on Plutonium around, it would likely never beat out the Wikipedia page (everyone is linking to Wikipedia these days). For more on this topic check out the article Impact Of Search Engines On Page Popularity.

In conclusion, Google is biased necessarily which is fine for them but bad for the little guys.

Friday, September 5, 2008

Cool Search Engine Interfaces

For those who enjoy trying something new check out the following search engines:

Kartoo: clusters pages within a search displaying visually.








Searchme: shows page with highlighted keywords.







If you really get an itching to check out other search engines see the article Top 100 Alternative Search Engines, March 2007.

Sunday, August 31, 2008

Biology + Computer Science = Proof of God ?

I am a Computer Scientist, or so I claim. I am working on my PhD in Computer Science and recently took a class on Bioinformatics. Here I learned about the mysterious world of DNA. Certainly I am no expert in the field, but what a complex system we have found in finding DNA. Most living things have DNA (or RNA in some form or another) which is changing through time and encodes what we are made of. The DNA is translated through multiple steps into proteins. These proteins bend around into varying shapes, which shapes are not constant through time and are part of metabolic pathways. This is about where my knowledge ends of the whole process of DNA up to what the functions of a cell are.

I do not know how accurate the comparison is, but I see DNA in a similar way to computer languages, like Perl or Java. Computer languages are a set of very simple instructions that a human understands, which are compiled into binary which tell the CPU how to manipulate variouos memory locations in a computer. Computer languages are built on top of the mechanics of a computer system. The entire process of designing a computer, building a computer, designing a computer language, specifying all of what a language understands, building a compiler for the language, and finally building a computer program from that language which works properly is a very organized process. Chaos does not create the final process, but it is endless hours of planning, organizing logically and testing to be sure that what one has created has no major, show stopping flaws. In the end all you or I may see is something like the text on this screen transmitted perhaps 100 of miles through wires to be displayed on your computer screen.

As I see it DNA has a set of rules that it follows (though scientists have not discovered all of them) and is part of a large, complex process that makes the encoding of life possible to be passed on to the next generation. This entire process as well as all other components of a living organism, such as reproduction, eating mechanisms, having food available, and aging are all necessary parts of even the most simple, single cell living organisms. I do not understand how the world could make the leap from no life on earth to a single living cell that was capable of encoding its being and reproducing without an creator involved in the process. In my limited experience, chance does not bring about large scale organization.

I believe there is a God and that the complexities of biology, for example, show that God was involved in the creation of life as we know it.

Tuesday, August 26, 2008

Google Wishlist

What features do you wish Google Search had but doesn't?

Yesterday marks the start of my second year as a PhD student. I have been working on click fraud research, but soon I will be switching to Text Mining, but I need some ideas as to what I should do. To get the creative juices flowing, we will start by listing features that you wish Google Search had. Any type of feature, large or small, no matter how realistic it is. Here are some that I have come across that sound interesting:
  • Summarize Opinions: What if you could search "people's opinions on restaraunt X" and the response would be summary of all opinions on all websites to do with that restaraunt say 35% liked it with links to those who did and 65% did not like it, then summary of why they did or did not like it. (For an example see Live's search summary of opinions limited to a few products "Canon EOS Digital Rebel XT - digital camera, 8MP, 3x Optical Zoom")
  • Search Topics not always Keywords: I search for papers on text mining on Google Scholar and find only a handful of papers that relate to what I am looking for. Most of the papers I would be interested in do not actually say "Text Mining" in the title, and sometimes not even in the paper but that is what they are talking about. I want the category "Text Mining" not the keywords "Text Mining".
  • Answer My Question: Sometimes I will search using a whole question, not just keywords and find someone else that asked the question on a forum, but did not get a response. I want to find the answer, not the question. This is not a new thought. There are already several approaches attempting to do this, but none of them are in the 90% accuracy on open ended questioning. (Examples: Ask Jeeves, START from MIT, etc.)
Please leave your thoughts. Anything welcome.

Monday, August 18, 2008

WordNet 3.0 Summary Statistics

I recently downloaded WordNet 2.1 (an ontology for the English language) for Windows and was impressed by the results of just basic words, that there were several senses displayed with definitions and example sentences. I thought I would run a few queries on WordNet. Fortunately, in the "Related Projects" link on WordNet someone has already loaded WordNet 3.0 into PostGreSQL (http://sourceforge.net/project/showfiles.php?group_id=135112&package_id=219735/&abmode=1).

Here are some of my basic questions:
  1. How many words are there in WordNet 3.0?
    147,306
    According, to one source (I am sure there is plenty of debate about how many words are in the English language in common usage), "The Second Edition of the Oxford English Dictionary contains full entries for 171,476 words in current use, and 47,156 obsolete words." (from AskOxford) Of course there were several other answers from other websites, but if the same definitions of what a word is are in use, then WordNet is doing pretty well.
  2. What are examples of words found in WordNet to get a sense of what the dictionary contains?
    52850;"gas system"
    103824;"predicate"
    27754;"committal to memory"
    81032;"malapropism"
    18769;"butt hinge"
    97732;"pectinidae"
    46875;"family termitidae"
    Here we see that by word it is not meant a single token. Also, the numbers next to each word were the IDs found in the database.
  3. How many senses does a word have?
    mean: 1.4, median: 1
    1 120433 82%

    2 15711 11%

    3 5116 3%

    57 1 0%"run"

    70 1 0%"cut"

    75 1 0%"break"

  4. How many hypernyms (broader words) does a word have?
    mean: 2.17, median: 1
    hypernyms
    words
    percent

    0 35649 24%
    1 46213 31%
    2 27468 19%
    113 1 0%"hold"
    125 1 0%"cut"
    156 1 0%"break"


  5. How many hyponyms (specific examples) does a word have in WordNet?
    mean: 2.17, median: 0
    hyponyms
    words
    percent

    0 118372 80%
    1 5427 4%
    2 4250 3%
    897 1 0% "herbaceous plant"
    913 1 0% "herb"
    1007 1 0% "change"

  6. How many synonyms does a word have?
    mean: 2.07, median: 1
    synonyms
    words
    percent

    0 36916 25%
    1 48004 33%
    2 24998 17%
    74 1 0%"hold"
    97 1 0%"pass"
    99 1 0%"break"

Summary:
It appears that a small percentage (20%) have hyponyms, though those that day may have quite a few (no surprise). Interestingly the mean number of hyponyms and hypernyms per word are the same as there are the same total number of hypernyms and hyponyms. The relationship is apparently symmetric.