Cosine similarity, cosine distance explained | Math, Statistics for data science, machine learning

  Рет қаралды 62,498

codebasics

codebasics

Күн бұрын

Cosine similarity, cosine distance explained in a way that high school student can also understand it easily. If you have aspirations of becoming a data scientist, you must know these two concepts. I will explain cosine similarity using a real life simple example and then we will write code in python using sklearn library.
Code: github.com/codebasics/math-fo...
Math/Stats for Data science, ML playlist: • Mathematics, statistic...
Check our Math and Statistics course for Data Science here : codebasics.io/courses/math-an...
Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.
🌎 Website: www.codebasics.io/
🎥 Codebasics Hindi channel: / @codebasicshindi
#️⃣ Social Media #️⃣
🔗 Discord: / discord
📸 Instagram: / codebasicshub
🔊 Facebook: / codebasicshub
📱 Twitter: / codebasicshub
📝 Linkedin (Personal): / dhavalsays
📝 Linkedin (Codebasics): / codebasics
❗❗ DISCLAIMER: All opinions expressed in this video are of my own and not that of my employers'.

Пікірлер: 58
@codebasics
@codebasics 2 жыл бұрын
Check out our premium machine learning course with 2 Industry projects: codebasics.io/courses/machine-learning-for-data-science-beginners-to-advanced
@marcellodichiera
@marcellodichiera 3 жыл бұрын
I started to miss your tutorials .. thank God you are back.. I know you are a busy man 😊.. keep going
@jayhu6075
@jayhu6075 11 ай бұрын
You make this topic understandable. Many thanks.
@jaysoni7812
@jaysoni7812 3 жыл бұрын
Please make videos on hypothesis test and it's parameter with theory and practical with real world use case i can understand theory wise but my mind can not accept it because i don't know how real world practical wise in data science field this use so i think your are the only one on earth who can explain this in much better way with real world practical use case.
@yefersoncastanopineda8544
@yefersoncastanopineda8544 Жыл бұрын
You made it looks easy. Thank you.
@0sofio0
@0sofio0 Жыл бұрын
thank you so much for this clear explanation!
@laxmipriyasahu7458
@laxmipriyasahu7458 Жыл бұрын
Thank you sir for the clear explanation
@aboleegatne3894
@aboleegatne3894 Жыл бұрын
Well explained! Thanks!
@MrMacjo22
@MrMacjo22 2 жыл бұрын
Great explanation, thanks!
@ryuji9804
@ryuji9804 2 жыл бұрын
is there any articles or journals that lead to theoretical of the cosine similarity and the cosine distance?
@venkat2ram
@venkat2ram 3 жыл бұрын
You have shifted to maths after 7 videos in this playlist. That's all the stats I need for data science? OR you are covering only for beginners? I am a beginner and I want to know if I need to know more than what you covered in your playlist. Thanks.
@WahranRai
@WahranRai 2 жыл бұрын
You must explain the meaning of *cosine similarity negative* and how to interpret it
@rupiyaldekai6136
@rupiyaldekai6136 3 жыл бұрын
can you do pytorch implementation for ann.and fuzzy systems.please sir
@tanujagoli3625
@tanujagoli3625 Ай бұрын
Very useful!
@alagappank1242
@alagappank1242 3 жыл бұрын
Sir please continue data structure and algorithm in python series sir....
@mindset5228
@mindset5228 2 жыл бұрын
On top !
@rancher16
@rancher16 Жыл бұрын
On top!!! Yes sir we need algorithm to understand data plszzzz!!
@morriskaller3549
@morriskaller3549 Жыл бұрын
Thanks man great vid
@programmingwithjackchew903
@programmingwithjackchew903 Жыл бұрын
can I say the negative value of cosine similarity is one variable move opposite of another variable for example if one variable increases then another variable decrease, so it has similarity but just in the opposite way?
@archerrozarioj
@archerrozarioj Жыл бұрын
Can cosine similarity be used for comparing financial transactions???
@kiranshahi2123
@kiranshahi2123 2 жыл бұрын
Very well explained.
@codebasics
@codebasics 2 жыл бұрын
Glad it was helpful!
@radhasingh3549
@radhasingh3549 2 жыл бұрын
Thanks a lot
@CuriousCommunityYT
@CuriousCommunityYT 3 жыл бұрын
When will videos will come on chi square, p test ??
@rutikalalakiya551
@rutikalalakiya551 3 ай бұрын
while importing sklearn , the error i got is : AttributeError: module 'numpy.linalg._umath_linalg' has no attribute '_ilp64' , how to solve this ?
@MrCaturday
@MrCaturday Жыл бұрын
very good video
@w14141
@w14141 Жыл бұрын
Excellent explanation! The only part that was not clear for me is when the similarity is -1. Does it mean that when we are calculating the distance of vector with cos similarity -1, it will result 2?
@w14141
@w14141 Жыл бұрын
Ah you explained it. When we are talking about distance we are not concerned with the vector direction. So talking about distance an angle of 180° between vectors is like an angle of 0°. I think that's it.
@user-yh4xy5zi6o
@user-yh4xy5zi6o Жыл бұрын
how you put the documents, time 8:57?
@squadgang1678
@squadgang1678 Жыл бұрын
Is cosine similarity and semantic similarity same?
@timepassgamer2602
@timepassgamer2602 2 жыл бұрын
Can anyone tell me Why cosine is used for similarity not sin?
@Akshay-vq1uv
@Akshay-vq1uv 2 жыл бұрын
Please keep using memes and cartoons to explain concepts in your videos. You are amazing.
@CuriousCommunityYT
@CuriousCommunityYT 3 жыл бұрын
Please add new videos to this playlist about chi square and other points
@codebasics
@codebasics 3 жыл бұрын
Yup will do
@CuriousCommunityYT
@CuriousCommunityYT 3 жыл бұрын
@@codebasics thanks I'm waiting for it
@shibabrataghosh6858
@shibabrataghosh6858 3 жыл бұрын
Sir please make a video on GitHub copilot as a threat to programmer's job
@its_kumar
@its_kumar 3 жыл бұрын
Yeah, lets talk about copilot
@codebasics
@codebasics 3 жыл бұрын
I dont think it is a thread to programmer's job. I will note down this topic and prepare something on it.
@its_kumar
@its_kumar 3 жыл бұрын
@@codebasics thank you sir
@GouravRout10
@GouravRout10 11 ай бұрын
nice start🤣🤣
@karan_negi
@karan_negi Жыл бұрын
After watching your videos I am getting how important is 12 th maths
@kevon217
@kevon217 Жыл бұрын
“My baby got confused!” Lol
@zeeshanarif6394
@zeeshanarif6394 3 жыл бұрын
How to find similarity between two strings
@codebasics
@codebasics 3 жыл бұрын
you can use python SequenceMatcher module or python-Levenshtein. Check this: stackoverflow.com/questions/6690739/high-performance-fuzzy-string-comparison-in-python-use-levenshtein-or-difflib stackoverflow.com/questions/17388213/find-the-similarity-metric-between-two-strings
@zeeshanarif6394
@zeeshanarif6394 3 жыл бұрын
Thanks for sharing
@zeeshanarif6394
@zeeshanarif6394 3 жыл бұрын
Its really very helpful
@pveeranjireddy8959
@pveeranjireddy8959 Жыл бұрын
Please make basic math videos.we are not able to understand
@punnarahul4068
@punnarahul4068 3 жыл бұрын
sir, please share presenations if you have no problem
@codebasics
@codebasics 3 жыл бұрын
Hey Punna to be honest I am spending too much time in making these presentations and they are proprietary content. In past I have seen people bluntlessly copy my content make tutorials and sell them for commercial gain without giving necessary credits hence I have decided to not share these. Hope you understand my situation.
@punnarahul4068
@punnarahul4068 3 жыл бұрын
@@codebasics Ok sir.
@punnarahul4068
@punnarahul4068 3 жыл бұрын
what is the difference between reinforcement learning and deep learning?
@its_kumar
@its_kumar 3 жыл бұрын
In deep learning we design our own Model using neural networks. In reinforcement learning we train the machine or ai bots to accomplish some task in the similar way as we train a dog 🐕, Basically it based on reward and punishment.
@punnarahul4068
@punnarahul4068 3 жыл бұрын
@@its_kumar wow bro!! that was a easy to understand tqsm
@observer698
@observer698 3 жыл бұрын
4:17 :))))))
@BrendanMetcalfe
@BrendanMetcalfe 3 жыл бұрын
👍👍👍
@AbhinavKumar-dr4ef
@AbhinavKumar-dr4ef 2 жыл бұрын
Thank you babies who helped me learning
@hangtran9340
@hangtran9340 8 ай бұрын
🥰🥰🥰
@ArunKumar-yb2jn
@ArunKumar-yb2jn 2 жыл бұрын
Next.. calculus.
Simple explanation of A/B Testing
5:49
codebasics
Рет қаралды 112 М.
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 20 МЛН
Gym belt !! 😂😂  @kauermtt
00:10
Tibo InShape
Рет қаралды 14 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 8 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 39 МЛН
Cosine Similarity, Clearly Explained!!!
10:14
StatQuest with Josh Starmer
Рет қаралды 82 М.
Cosine Similarity and Cosine Distance
11:51
Krish Naik
Рет қаралды 109 М.
Machine Learning Tutorial Python 12 - K Fold Cross Validation
25:20
Every Distance in Data Science (Almost 100K Subs!)
21:25
ritvikmath
Рет қаралды 11 М.
I gave 127 interviews. Top 5 Algorithms they asked me.
8:36
Sahil & Sarra
Рет қаралды 625 М.
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 20 МЛН