2.4 DS: Jaccard Coefficient or Index or Similarity

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • #JaccardCoefficient #Jaccard #similarity #MachineLearning #DataScience #DataMining #ComputingForAll
    🔗 Here is my easy to grasp Data Science/ML course RUclips playlist:
    • Machine Learning/ Data...
    🔗 Here is my easy to grasp ML workshop series:
    • Data Science/Machine L...
    The high similarity between a pair of points indicates that the points are nearby. Low similarity indicates a large distance. Literature covers several similarity measures. In this video we talk about Jaccard coefficient or index or similarity.
    Jaccard index/coefficient/similarity is generally computed between two sets of items. It is a ratio of commonality between the sets over all the items. If X and Y are two sets, then the Jaccard index between two sets is computed using the ratio of the size of the intersection and the size of the union of the two sets.
    Jaccard index can be computed between two vectors too. Jaccard index computed between two vectors/data points/objects is called a weighted Jaccard index.
    Here is a video on the Python code for computing Jaccard Similarity:
    • Weighted Jaccard Simil...
    For examples and more similarity measures visit the page below:
    computing4all....
    Visit the page with all the data science materials we have developed: computing4all....
    Thank you.
    Dr. Shahriar Hossain
    computing4all.com
    #JaccardSimilarity #JaccardIndex

Комментарии • 109

  • @1978nepenthe
    @1978nepenthe 3 года назад +4

    Thank you for making it so simple and straight-forward (but also covering the set-based approach first for informational purposes)! Much appreciated!

    • @C4A
      @C4A  3 года назад

      I am glad to hear that you liked it. Thank you for watching and providing the feedback.

  • @markkustelski8113
    @markkustelski8113 4 года назад +7

    Thanks. Simple and easy to understand.

    • @C4A
      @C4A  4 года назад

      I am glad to hear that you liked the video. Have a wonderful day.

  • @begrammer
    @begrammer 2 года назад +2

    GOD BLESS you made it soooooo simple THANK YOU KEEP POSTING

    • @C4A
      @C4A  2 года назад

      Thank you for watching and the kind words. I am glad to hear that the video was helpful.

  • @osmanovitch7710
    @osmanovitch7710 2 года назад +2

    Teacher , your explanations are just amazing, thank you so much

    • @C4A
      @C4A  2 года назад +1

      I am glad to hear that you liked it. Thank you for watching.

  • @zotzot3967
    @zotzot3967 11 месяцев назад +1

    Thank you for this lovely explanation, you have saved me on my project. i really needed the generalization of the jaccard index and you did justice to it sir.

    • @C4A
      @C4A  11 месяцев назад +1

      I am glad to know that the video was useful for you. Thank you for watching and for the kind words.

  • @nilantaymorshed2663
    @nilantaymorshed2663 3 года назад +2

    Thank you for explaining the material so clearly.

    • @C4A
      @C4A  3 года назад

      I appreciate your feedback. Thank you for watching.

  • @mansoorshaikh3667
    @mansoorshaikh3667 3 года назад +3

    Thank you, Dr. Hossain your explanation is very simple and excellent.

    • @C4A
      @C4A  3 года назад

      Thank you for watching and commenting. I am glad to hear that the video was useful. Have a wonderful time.

  • @imaadullahafridi1928
    @imaadullahafridi1928 3 года назад +1

    an amazing, simple, and easy to understand explanation. Keep it up.

    • @C4A
      @C4A  3 года назад

      I am happy to hear that you liked the video. Thank you for watching and providing the feedback. Have a wonderful time.

  • @ReandryNakwalumbu
    @ReandryNakwalumbu 5 месяцев назад +1

    This was awesome I real appreciate mr

    • @C4A
      @C4A  5 месяцев назад

      I am glad to hear that you liked the video! Thank you so much for watching!

  • @asratarke3731
    @asratarke3731 Год назад +1

    Thank you for clear explanation

    • @C4A
      @C4A  Год назад

      I am glad to hear that you liked it. Thank you for watching.

  • @tabbypp
    @tabbypp Год назад +1

    Amazing tutorial. Thank you! =)

    • @C4A
      @C4A  Год назад

      I am glad to hear that you liked it. Thank you for watching and the kind words.

  • @babaabba9348
    @babaabba9348 Год назад +1

    Masha Allah, great explaination

    • @C4A
      @C4A  Год назад

      Thank you for watching and the kind words.

  • @henrykong8461
    @henrykong8461 3 года назад

    The explanation is simple and clear. Thanks for sharing!

    • @C4A
      @C4A  3 года назад +1

      I am glad to hear that you liked it. Thank you for watching and commenting!

  • @saurabhchdry3825
    @saurabhchdry3825 4 года назад +1

    Nice intuitive explanation, thanks!

    • @C4A
      @C4A  4 года назад

      I am glad to hear that you liked it. Thank you for watching and commenting. Have a wonderful weekend ahead.

  • @rajbir_singh0517
    @rajbir_singh0517 3 года назад +1

    really really impressive sir.. a pretty simple explanation. I have subscribed channel in the first video.

    • @C4A
      @C4A  3 года назад

      I am glad to hear that you liked the video. Thank you for watching, commenting, and subscribing.

  • @msctube45
    @msctube45 4 года назад +1

    Thank you Dr. Hossain for this excellent video.

    • @C4A
      @C4A  4 года назад

      I am glad to know that you liked it. Thank you for watching and commenting. Have a wonderful weekend ahead.

  • @sairagillani9626
    @sairagillani9626 4 года назад +1

    Very good explanation !! Really helpful :) Thanks

    • @C4A
      @C4A  4 года назад

      I am glad to hear that the video was helpful. Thank you for watching and commenting.

  • @MrDissid3nt
    @MrDissid3nt 4 года назад +1

    Great explanation!

    • @C4A
      @C4A  4 года назад

      I am glad to know that you liked it. Thanks for watching and commenting.

  • @s.hussainshah3416
    @s.hussainshah3416 Год назад +1

    Very nice explanation sir, you should continue posting more videos 👍🏻

    • @C4A
      @C4A  Год назад +1

      Thank you for watching and the wonderful comment! I hope to produce more videos in the coming days,

    • @s.hussainshah3416
      @s.hussainshah3416 Год назад

      @@C4A Thankyou sir, today i had my machine learning exam and your videos lecture helped me for some topics.

    • @C4A
      @C4A  Год назад +1

      You are most welcome and it is great to hear that the videos were helpful! Thank you.

    • @s.hussainshah3416
      @s.hussainshah3416 Год назад +1

      @@C4A sir, can you explain me K-means code on iris dataset? Its for my assignment

    • @C4A
      @C4A  Год назад +1

      I have the following two videos on k-means.
      ruclips.net/video/DtsYfwl4uKw/видео.html
      ruclips.net/video/qSy0nXYrVRM/видео.html
      You can tailor the codes discussed in the videos fir iris data.

  • @rogerward8047
    @rogerward8047 3 года назад +1

    You are great teacher! Thank you!!!

    • @C4A
      @C4A  3 года назад

      Thank you for the kind words. Have a wonderful weekend.

  • @muskduh
    @muskduh 2 года назад +1

    Thank you for your video

    • @C4A
      @C4A  2 года назад +1

      You are most welcome and thank you for watching.

  • @zack_104
    @zack_104 3 года назад +1

    Wow. This is a nice explanation. Thank you

    • @C4A
      @C4A  3 года назад

      Thank you for watching and commenting.

  • @fahmiquradaa2069
    @fahmiquradaa2069 3 года назад +1

    Thanks. simple explanation

    • @C4A
      @C4A  3 года назад

      I am glad to know that you liked it. Thank you for watching and commenting. Have a wonderful time.

  • @MarcosMoreiraka
    @MarcosMoreiraka 3 года назад +1

    Excellent explanation. Thanks a lot

    • @C4A
      @C4A  3 года назад

      Glad you liked it! Thanks for watching.

  • @battletoast9782
    @battletoast9782 3 года назад +1

    Thank you so much! Your video helped me a lot!

    • @C4A
      @C4A  3 года назад +1

      I am glad to know that the video was helpful. Thank you for watching and sending me the note. Have a wonderful weekend ahead.

  • @christianjt7018
    @christianjt7018 3 года назад +1

    This was an awesome explanation, thank you very much.

    • @C4A
      @C4A  3 года назад

      I am glad to hear that you liked it. Thank you!

  • @mainakbios
    @mainakbios 4 года назад +1

    Thank you sir, very simple regarding explanantion, helps lot

    • @C4A
      @C4A  4 года назад

      I am glad to hear that you liked it. Thank you for watching and commenting. Have a wonderful day.

  • @yamika.
    @yamika. 2 года назад +1

    thank you for making it so interesting!

    • @C4A
      @C4A  2 года назад

      Glad to hear that you liked the video. Thank you for watching and commenting.

  • @Abhi-qf7np
    @Abhi-qf7np 4 года назад +1

    Good and easy explanation, Thank you

    • @C4A
      @C4A  4 года назад

      Thank you for your comment. Best regards.

  • @mohammedy.salemalihorbi1210
    @mohammedy.salemalihorbi1210 4 года назад +1

    Thanks alot, This is very clear explanation

    • @C4A
      @C4A  4 года назад

      I am glad to hear that you liked it. Thank you for watching and providing the feedback. Have a wonderful week.

  • @share4care604
    @share4care604 2 года назад +1

    Thanks sir wonderful explanation.
    How to classify jackard coefficient like excellent,very good,good,poor,very poor ?

    • @C4A
      @C4A  2 года назад +1

      I am glad that you liked the video. Thank you for your question. It is hard to classify a similarity measure in a general context. For some datasets one similarity measure might be better than the other. Jaccard is a widely used similarity measure when the algorithm using it does not require the triangle inequality of distance to be satisfied. For measuring document-document resemblance, generally cosine similarity is used. For general commodity/count-based features in a dataset, Jaccard is an intuitive measure for computing similarity between two objects/rows of a data table.
      Thanks again for this great question.

    • @share4care604
      @share4care604 2 года назад +1

      @@C4A wow
      Thanks for prompt response 😍🤲🏼

  • @areejbaig3644
    @areejbaig3644 2 года назад +1

    Amazing..thank you Sir! It helps a lot

    • @C4A
      @C4A  2 года назад +1

      I am glad to hear that the video is helpful. Thank you for watching and commenting.

  • @robensoo6638
    @robensoo6638 2 года назад +1

    Thank you so much ❤️❤️

    • @C4A
      @C4A  2 года назад +1

      You are most welcome! Thank you for watching and commenting.

  • @Diamond_Hanz
    @Diamond_Hanz 2 года назад +1

    3:23 jaccard(x,y) = 0/6?

  • @kofiamador3458
    @kofiamador3458 4 года назад +1

    Well explained. Thanks

    • @C4A
      @C4A  4 года назад

      Kofi Amador I am happy to hear that you liked the video. Have a wonderful week ahead.

  • @dweebosupremo5904
    @dweebosupremo5904 3 года назад +1

    Thank you for this nice video. Pleasing music too.

    • @C4A
      @C4A  3 года назад

      Haha 😆 I am glad that you liked the video and the music. Thank you for watching. Have a wonderful weekend.

  • @shrivastava3892
    @shrivastava3892 2 года назад +1

    Thank you sir.

    • @C4A
      @C4A  2 года назад

      You are most welcome! Thank you for watching.

  • @saibhargavlanka
    @saibhargavlanka 4 года назад +1

    Crisp and clear

    • @C4A
      @C4A  4 года назад

      sai bhargav lanka I am glad to hear that you liked the video. Have a wonderful weekend ahead.

  • @iqbalvoices
    @iqbalvoices 4 года назад +1

    awesome explanation sir

    • @C4A
      @C4A  4 года назад

      CSE ROCKER I am glad to hear that you liked it. Thank you for watching. Have a wonderful week.

  • @fawzihatem9320
    @fawzihatem9320 4 года назад +1

    so far so good thank you do much

    • @C4A
      @C4A  4 года назад

      I am glad to hear that you liked it. Thank you for visiting and commenting.

  • @garrylong2993
    @garrylong2993 4 года назад +1

    Very nice video, thank you sir.

    • @C4A
      @C4A  4 года назад +1

      Garry Long Thank you for watching.

  • @shahariarsarkar8646
    @shahariarsarkar8646 2 года назад +1

    Sir you may make a mistake. 076 is greater than 0.323076923 that means row1 is very similary to row5 than row3.

    • @mahmudshahriarhossain7155
      @mahmudshahriarhossain7155 2 года назад

      Higher Jaccard similarity means "more similar". Since Row 1 and Row 3 have a Jaccard similarity of 0.76 (higher), but Row 1 and Row 5 have a Jaccard similarity 0.32 (lower), Row 1 is more similar to Row 3 (compared to Row 5). It seems I said it correctly but I wrote it incorrectly on the screen in the top-left corner at 8:02 timestamp. The smaller than symbol "" in timestamp 08:02 . Thank you for your comment.

    • @shahariarsarkar8646
      @shahariarsarkar8646 2 года назад +1

      @@mahmudshahriarhossain7155 Thanks sir for your kind and quick response.

    • @mahmudshahriarhossain7155
      @mahmudshahriarhossain7155 2 года назад

      @@shahariarsarkar8646 I have now blurred the text in the top left side where I have the "

  • @dilanteranovaleukack
    @dilanteranovaleukack 2 года назад +1

    Hallo, thanks for the video, but I would like to know how to write a program to calculate this?

    • @C4A
      @C4A  2 года назад

      Hello, sure. I have provided Python code for Jaccard, Cosine, and Tanimoto similarities here: computing4all.com/courses/introductory-data-science/lessons/similarity-measures/
      Thank you for watching the video! Have a wonderful time.

  • @dominicmd1117
    @dominicmd1117 4 года назад +1

    awesome job, thanks!

    • @C4A
      @C4A  4 года назад

      I am glad to know that you liked it. Have a wonderful weekend ahead.

  • @etn422
    @etn422 3 года назад +1

    You look like ElectroBOOMs brother :P Nice video!

    • @C4A
      @C4A  3 года назад

      😂🤣😅 Thank you for watching! Have a wonderful week.

  • @yohannrousseau7161
    @yohannrousseau7161 3 года назад +1

    Merci

    • @C4A
      @C4A  3 года назад

      You are welcome! 😁

  • @shahfahadkhan4143
    @shahfahadkhan4143 4 года назад +1

    Sir in vector based jaccard similarity if we have two same values in same attributes (features) then which value will be taking as in minimum or maximum. because we have two same values.

    • @C4A
      @C4A  4 года назад +1

      Thank you for your question. Either one is fine as the minimum or maximum if two values are the same. Fir example, min(5, 5)=5 and max(5, 5)=5. That is minimum and the maximum will be the same number.

    • @shahfahadkhan4143
      @shahfahadkhan4143 4 года назад

      @@C4A i need your email

    • @C4A
      @C4A  4 года назад

      The email address is: allforcomputing at the rate gmail dot com

  • @abhishekrana2682
    @abhishekrana2682 4 года назад

    sir, can we use this index for multiple samples? or it is only for comparison between two samples?

    • @C4A
      @C4A  4 года назад +2

      Similarity or distance is generally computed between a pair of vectors (samples). If you need to compute average similarity, then you can compute similarity between all pairs, sum the similarities, and divide by number of pairs.
      If you need to compute similarity between two groups of samples, you can construct a pair for which one sample comes from group1 and the other sample comes from group2, and then compute the similarity for that pair. Compute the average of all similarities computed for all such pairs. You can call this average "the average similarity between group1 and group2".
      I hope that answers your question. Please feel free to ask questions you may have. Have a wonderful week.

  • @JoseRomero-wp4ij
    @JoseRomero-wp4ij 4 года назад +1

    Thanks a lot

    • @C4A
      @C4A  4 года назад

      Jose Romero You are welcome. Have a wonderful week.

  • @AndreiMargeloiu
    @AndreiMargeloiu 3 года назад +1

    Great explanation!

    • @C4A
      @C4A  3 года назад

      Thank you for watching and commenting! Have a wonderful week ahead.