How to implement K-Means from scratch with Python

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025
  • 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

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

  • @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

  • @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.

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

    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 9 месяцев назад

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

  • @hounddog1
    @hounddog1 Год назад +2

    Good stuff, but pretty hard to comprehend fully at first

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

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

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

    Hi. what IDE are you using?

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

    What is the difference between using fit and predict?

    • @harshnj
      @harshnj Месяц назад

      the fit method is used to prepare the model by telling what to expect (the shape, size of data, amount of classes, if applicable etc)
      then the predict methods actually predicts form the given input

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

    Nice.