Tf-Idf and Cosine similarity

Seeking Wisdom

In the year 1998 Google handled 9800 average search queries every day. In 2012 this number shot up to 5.13 billion average searches per day. The graph given below shows this astronomical growth.

YearAverage Search per day


The major reason for google’s success is because of its pageRank algorithm. PageRank determines how trustworthy and reputable a given website is. But there is also another part. The input query entered by the user should be used to match the relevant documents and score them. In this post I will focus on the second part. I have created 3 documents to show how this works. Take some time to go through them.

Document 1: The game of life is a game of everlasting learning
Document 2: The unexamined life is not worth living

View original post 1,226 more words

what a lonely existence built around constantly updating your social media.

Random musings

So glad to be back here.

I think I like writing. Just putting the crap in your mind down on a screen/paper and feel the burden lessening. It’s such an example of the surety we all want that comes with talking to some one intimately.

I must think of good ideas for the short story competition. 


so like people keep telling me to watch this, read that, I’m finally going to compile all they’ve asked me to watch. And keep re-editing it to add on.

// Ignore everything that is below this line #ProgrammerJoke

Seasons/series to catch up on in the hols: Dr. Who, Breaking Bad, Dexter, Supernatural, Community.

Musicians/Bands: Elvis Presley, Aretha Franklin, Cat Stevens, Sigur Ros, Soley, more ghazals, undiscovered Junoon and Vital Signs. (try listening to NFAK or Abida Parveen..) 

must definitely see the old PTV dramas and vintage Lollywood movies. (Is YouTube ever coming back?)

Books: How it happened, a-book-about-an-old-man-jumping-to-his-death,Return of the King (by William Dalrymple, not LOTR),  Vintage Cowasjee (</3), Faiz translated. 


Nayyara Noor – Classic Renditions

Music & Lyrics

Nayyara Noor is a Ghazal singer more identified with tragic or sad Ghazals. She has sung some classic poetry on the soundtrack of the evergreen TV series “Dhoop Kinare”.


Raat Youn Dil Mein Teri

raat yuuN dil meN terii khoyii hu’ii yaad aayii
jaise viiraane meN chupke se bahaar aa jaaye
jaise sehraaoN meN hauley se chale baad-e-nasiim
jaise biimaar ko be-vajh qaraar aa jaaye

Last night your faded memory came to me
As in the wilderness spring comes quietly
As, slowly, in the desert, moves the breeze
As, to a sick man, without cause, comes peace


Poet : Faiz Ahmad Faiz
Music : Arshad Mehmood
Soundtrack : Dhoop Kinare
Translation : Vikram Seth

An instant classic and perhaps Faiz’s best known Sher. It was used by Shammi Kapoor to woo Rajshree during his Yahoo days in one of his hits – Janwar.

Aaj Baazaar Mein

aaj baazaar meN paa-bajaulaaN…

View original post 368 more words