How to implement K-Means from scratch with Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 2024
  • In the 10th lesson of the Machine Learning from Scratch course, we will learn how to implement the K-Means algorithm.
    You can find the code here: github.com/Ass...
    Previous lesson: • How to implement SVM (...
    First lesson: • How to implement KNN f...
    Welcome to the Machine Learning from Scratch course by AssemblyAI.
    Thanks to libraries like Scikit-learn we can use most ML algorithms with a couple of lines of code. But knowing how these algorithms work inside is very important. Implementing them hands-on is a great way to achieve this.
    And mostly, they are easier than you’d think to implement.
    In this course, we will learn how to implement these 10 algorithms.
    We will quickly go through how the algorithms work and then implement them in Python using the help of NumPy.
    ▬▬▬▬▬▬▬▬▬▬▬▬ CONNECT ▬▬▬▬▬▬▬▬▬▬▬▬
    🖥️ Website: www.assemblyai...
    🐦 Twitter: / assemblyai
    🦾 Discord: / discord
    ▶️ Subscribe: www.youtube.co...
    🔥 We're hiring! Check our open roles: www.assemblyai...
    ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    #MachineLearning #DeepLearning

ความคิดเห็น • 14

  • @business_central
    @business_central ปีที่แล้ว +1

    this one was well done!

  • @stuartallen2001
    @stuartallen2001 2 ปีที่แล้ว +2

    Hope you guys do gaussian mixture models (similar algorithm) next! That's part of my thesis work and i could use the help haha

  • @_funkadelic
    @_funkadelic 12 วันที่ผ่านมา

    What is the difference between using fit and predict?

  • @jinkoofy
    @jinkoofy ปีที่แล้ว

    Excellent! as usual.

  • @ravindrakarande59
    @ravindrakarande59 ปีที่แล้ว +1

    I enjoy all your videos,just a doubt why don't you use numpy broadcasting instead of using so many for loops to compute values such as the closest index and stuff......It would reduce the runtime of your code.

  • @hounddog1
    @hounddog1 ปีที่แล้ว +2

    Good stuff, but pretty hard to comprehend fully at first

  • @muhammadadnanbashir4057
    @muhammadadnanbashir4057 ปีที่แล้ว +2

    I need fcm clustering and IFCM clustering can you help me?

  • @morisbagic7491
    @morisbagic7491 ปีที่แล้ว

    Hi, great videos!! Just wondering, why defining euclidian distance outside of the class? This was also done in KNN video. All the best!

    • @ranjanah1356
      @ranjanah1356 5 หลายเดือนก่อน

      this is to avoid scope of variable issues usually. here I think its just a convention.

  • @user-en1se1co4e
    @user-en1se1co4e ปีที่แล้ว +1

    Hi. what IDE are you using?

  • @philtoa334
    @philtoa334 ปีที่แล้ว

    Nice.