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

Sdílet
Vložit
  • čas přidán 28. 06. 2024
  • 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'.

Komentáře • 58

  • @codebasics
    @codebasics  Před 2 lety +2

    Check our Math and Statistics course for Data Science here : codebasics.io/courses/math-and-statistics-for-data-science

  • @marcellodichiera
    @marcellodichiera Před 3 lety +3

    I started to miss your tutorials .. thank God you are back.. I know you are a busy man 😊.. keep going

  • @jayhu6075
    @jayhu6075 Před 10 měsíci +2

    You make this topic understandable. Many thanks.

  • @MrMacjo22
    @MrMacjo22 Před 2 lety +1

    Great explanation, thanks!

  • @yefersoncastanopineda8544

    You made it looks easy. Thank you.

  • @0sofio0
    @0sofio0 Před 11 měsíci

    thank you so much for this clear explanation!

  • @aboleegatne3894
    @aboleegatne3894 Před rokem

    Well explained! Thanks!

  • @jaysoni7812
    @jaysoni7812 Před 2 lety

    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.

  • @laxmipriyasahu7458
    @laxmipriyasahu7458 Před rokem

    Thank you sir for the clear explanation

  • @WahranRai
    @WahranRai Před 2 lety +4

    You must explain the meaning of *cosine similarity negative* and how to interpret it

  • @morriskaller3549
    @morriskaller3549 Před rokem

    Thanks man great vid

  • @alagappank1242
    @alagappank1242 Před 3 lety +19

    Sir please continue data structure and algorithm in python series sir....

    • @mindset5228
      @mindset5228 Před 2 lety

      On top !

    • @rancher16
      @rancher16 Před rokem

      On top!!! Yes sir we need algorithm to understand data plszzzz!!

  • @tanujagoli3625
    @tanujagoli3625 Před 20 dny

    Very useful!

  • @venkat2ram
    @venkat2ram Před 2 lety +1

    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.

  • @kiranshahi2123
    @kiranshahi2123 Před 2 lety +2

    Very well explained.

  • @radhasingh3549
    @radhasingh3549 Před 2 lety

    Thanks a lot

  • @MrCaturday
    @MrCaturday Před rokem

    very good video

  • @ryuji9804
    @ryuji9804 Před 2 lety

    is there any articles or journals that lead to theoretical of the cosine similarity and the cosine distance?

  • @rupiyaldekai6136
    @rupiyaldekai6136 Před 2 lety

    can you do pytorch implementation for ann.and fuzzy systems.please sir

  • @Akshay-vq1uv
    @Akshay-vq1uv Před 2 lety +1

    Please keep using memes and cartoons to explain concepts in your videos. You are amazing.

  • @CuriousCommunityYT
    @CuriousCommunityYT Před 2 lety

    When will videos will come on chi square, p test ??

  • @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 Před rokem

    Can cosine similarity be used for comparing financial transactions???

  • @karan_negi
    @karan_negi Před 11 měsíci

    After watching your videos I am getting how important is 12 th maths

  • @w14141
    @w14141 Před rokem +1

    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 Před rokem +1

      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.

  • @CuriousCommunityYT
    @CuriousCommunityYT Před 2 lety +1

    Please add new videos to this playlist about chi square and other points

  • @GouravRout10
    @GouravRout10 Před 10 měsíci

    nice start🤣🤣

  • @shibabrataghosh6858
    @shibabrataghosh6858 Před 3 lety +2

    Sir please make a video on GitHub copilot as a threat to programmer's job

    • @its_kumar
      @its_kumar Před 3 lety

      Yeah, lets talk about copilot

    • @codebasics
      @codebasics  Před 2 lety +1

      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 Před 2 lety

      @@codebasics thank you sir

  • @rutikalalakiya551
    @rutikalalakiya551 Před 3 měsíci

    while importing sklearn , the error i got is : AttributeError: module 'numpy.linalg._umath_linalg' has no attribute '_ilp64' , how to solve this ?

  • @timepassgamer2602
    @timepassgamer2602 Před 2 lety +1

    Can anyone tell me Why cosine is used for similarity not sin?

  • @squadgang1678
    @squadgang1678 Před rokem

    Is cosine similarity and semantic similarity same?

  • @pveeranjireddy8959
    @pveeranjireddy8959 Před rokem

    Please make basic math videos.we are not able to understand

  • @BrendanMetcalfe
    @BrendanMetcalfe Před 3 lety

    👍👍👍

  • @user-yh4xy5zi6o
    @user-yh4xy5zi6o Před rokem

    how you put the documents, time 8:57?

  • @kevon217
    @kevon217 Před rokem

    “My baby got confused!” Lol

  • @zeeshanarif6394
    @zeeshanarif6394 Před 3 lety +1

    How to find similarity between two strings

    • @codebasics
      @codebasics  Před 2 lety

      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 Před 2 lety +1

      Thanks for sharing

    • @zeeshanarif6394
      @zeeshanarif6394 Před 2 lety

      Its really very helpful

  • @punnarahul4068
    @punnarahul4068 Před 3 lety +1

    sir, please share presenations if you have no problem

    • @codebasics
      @codebasics  Před 2 lety +1

      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 Před 2 lety

      @@codebasics Ok sir.

  • @AbhinavKumar-dr4ef
    @AbhinavKumar-dr4ef Před 2 lety +1

    Thank you babies who helped me learning

  • @observer698
    @observer698 Před 2 lety +1

    4:17 :))))))

  • @punnarahul4068
    @punnarahul4068 Před 3 lety +2

    what is the difference between reinforcement learning and deep learning?

    • @its_kumar
      @its_kumar Před 3 lety +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 Před 3 lety +1

      @@its_kumar wow bro!! that was a easy to understand tqsm

  • @hangtran9340
    @hangtran9340 Před 7 měsíci

    🥰🥰🥰

  • @ArunKumar-yb2jn
    @ArunKumar-yb2jn Před 2 lety

    Next.. calculus.