[MACHINE LEARNING]WK2 Recommendation (Euclidean and Pearson)

screen-shot-2016-09-26-at-12-03-49

I made a date recommendation with the python for 2 users. One is based on the Euclidean distance and the other is based on the Pearson correlation. I used numpy and math function to do an array/vector calculations. One was a summation and the other was a Dot Product.  If I run the code, the terminal collects the preferences of the exercises. If the users enter numbers from 0.0 to 5.0 then it would return the recommendation values. The Euclidean distance will give a number from 0.0 to 1.0 and the Pearson correlation will give a number from -1.0 to 1.0.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s