Machine Learning Guide cover image

MLA 011 Practical Clustering Tools

Machine Learning Guide

00:00

How Do I Compute the Cosin Similarity of Every Entry Embedding?

The k means algaritm, which uses euclidian distance under the hood. We don't just tell it to use the cosign similarity metric, for technical reasons, using the string metric equals cosign. Instead, we pre compute the cosin similar into ato a square matrix of a by b cosin distances. I'm using pytorch to normalize all the vectors first, and then compute the dot products.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app