How to do KMeans Clustering in Python for Soccer Analysis

Поделиться
HTML-код
  • Опубликовано: 15 мар 2021
  • GitHub: github.com/mckayjohns/youtube...
    Join the complete football analytics course:
    mckay-s-site.thinkific.com/co...

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

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

    Thanks for so much educational content

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

    Thanks for the shearing valuable knowledge free of cost ❤️❤️❤️❤️❤️❤️❤️

  • @gabrielfoligno
    @gabrielfoligno 3 года назад +5

    Hello bro! I love your content! Could you create passing sonars as your next tutorial? I'd love that!

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

      Thanks! I will add it to my list!

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

    Many thanks for this awesome tutorial.
    Another suggestion of next tutorial: using Kmeans clustering for players formation ??

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

      Great suggestion! I'll look into it

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

      @@McKayJohns I’m very interested to see how you do it

    • @VarunSharma-rr5dz
      @VarunSharma-rr5dz 3 года назад

      @@McKayJohns can we use KMeans in selecting players for the team? Will it be based on features selection(variables) ? Any Suggestions.....

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

    Hey McKay! I tried implementing this but using data from whoscored, and the plotted lines are going out of the pitch figure. Any clue as to how to fix it?

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

      Ya you’ll have to make sure the data is the same as the pitch. The statsbomb is 120 by 80 while whoscored I think is 100x100

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

      @@McKayJohns Aah yes ofcourse! Thank you!

  • @SuchithVilluri
    @SuchithVilluri 3 месяца назад

    Hey! My graph is not plotting any clusters. Could you suggest any other method?

  • @giacomom3202
    @giacomom3202 3 года назад +4

    A little easier: df[['x','y']] = df['location'].to_list()

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

      Thanks! That's good to know

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

      @@McKayJohns Really enjoyed the tutorial, thanks. Looking forward to more!