Image for post
Image for post
Photo by Markus Winkler on Unsplash

This is a quick and straight to the point introduction to Euclidean distance and cosine similarity with a focus on NLP.

Euclidean Distance

The Euclidean distance metric allows you to identify how far two points or two vectors are apart from each other.


Image for post
Image for post
Image Source: “Man Under” by american_rugbier — Under Creative Commons license

“Are you having your period?”. That’s the question the guy known as my father asked me when I was complaining of stomachache at around 1:00 PM, I was 18. I was hungry since I didn’t eat anything so far that day but he saw it as a great opportunity to remind me the thousandth time that I was a man.


Image for post
Image for post
Image Source: “Who Cares About Tomorrow” by Thomas Hawk — Under Creative Commons license

Click here for Part I


Image for post
Image for post
Image Source: “Exploring Sadness” by Alexander Mueller– Under Creative Commons license

You set the alarm before bed today secretly hoping it will not wake you up tomorrow. “Wake up!”. “No, don’t!”. You know your life sucks when you have more reasons to do the latter. The waking hours can be boring. You go to the classroom where you failed last year or, more recently, last semester. You meet the same person telling you the same story, the thousandth time. A story you cannot care less about.

Gueter Josmy Faure

Graduate student in computer science and Machine Learning enthusiast. I write just to learn. portfolio : https://joslefaure.github.io/portfolio/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store