Тёмный

Introduction to football analysis with tracking data in python. 

Friends of Tracking
Подписаться 24 тыс.
Просмотров 82 тыс.
50% 1

Опубликовано:

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 70   
@alexanderburton3842
@alexanderburton3842 Год назад
I have very, very basic experience with Python, but I adore football and am at that point in my career where I am seeking change. I'm 32 years old so hopefully not too old to learn and to be able to one day land a job in football data analytics! This video really was great and made me very excited to learn python.
@Olamichael7781
@Olamichael7781 3 месяца назад
We really are looking for the same thing good luck mate
@aarronbriggs8206
@aarronbriggs8206 2 года назад
Maths and football! This has to be heaven
@totalfootballanalysis
@totalfootballanalysis 4 года назад
Amazing to get such a detailed insight into football data analysis! Looking forward to watching more of your videos! :)
@dolfinho87
@dolfinho87 3 года назад
What a huge content! Thanks! If you make a online course I buy immediately!
@BigDataSport
@BigDataSport 4 года назад
Top Class Content, many thanks Laurie , David and all FoT contributors
@stevedix9186
@stevedix9186 4 года назад
Fantastic content - it references that this is part 4. Can someone provide a link to the other parts in the series?
@olumidebenjami4
@olumidebenjami4 4 года назад
You can find it here under tutorial synopsis github.com/Friends-of-Tracking-Data-FoTD/LaurieOnTracking
@benephr
@benephr 27 дней назад
Hello! I want to extract all touches of a certain player from a video of a full match automatically, can we achieve that with your approach? Thank you
@mooreideas
@mooreideas 2 года назад
I’m a sports data analyst for Second Spectrum. I’m trying my best to work my way up and make this a career, I keep hearing this word “python” in job listings for the NBA and that’s what lead me to this video!
@chrisgill_UK
@chrisgill_UK 2 года назад
Good luck Junior!
@mooreideas
@mooreideas 2 года назад
@@chrisgill_UK Hey Chris! Thanks for the kind words. I checked out your channel, love the branding you’ve done, how long have you been a Sports Analyst for?
@chrisgill_UK
@chrisgill_UK 2 года назад
@@mooreideas Thanks Junior! I had my first position at a club around 10 years ago and have run my sports analysis business for the last 8 years or so!
@mooreideas
@mooreideas 2 года назад
@@chrisgill_UK what’s your business name? Love to learn more
@chrisgill_UK
@chrisgill_UK 2 года назад
@@mooreideas In-Play Sports. We offer online video analysis software (In-Play Online) as well as sports filming and analysis... its linked on my channel 👍
@mangaikaduna7193
@mangaikaduna7193 Месяц назад
thanks much for this analysis: but my very concern and desire is that i want to design a program that will fetch a particular or current seasons games, match played (Mp), goals scored, goals conceded for both home (Hm) and away(Aw) teams, each of which should automatically run in a respective input unit for further analysis. the input units looks like this; #TeamA Hm = str(input('Home: ')) Mpa = int(input('enter Mp:')) HXa = int(input('Scored: ')) HXb = int(input('Conceded: ')) #TeamB Aw = str(input('Away: ')) Mpb = int(input('enter Mp:')) AYa = int(input('Scored: ')) AYb = int(input('Conceded: ')) #How can you go about helping me please?
@tomymacmillan
@tomymacmillan 2 года назад
Nice course! Do you know how this data is recolected? Hardware device? Computer vision?
@AndersonSantos-bh5zt
@AndersonSantos-bh5zt 4 года назад
First, thanks a lot, Laurie Shaw. If anyone would like to know event frequencies per period (First Period or Second Period), I would like to contribute (using groupy): home_shots.groupby('Period')['Subtype'].value_counts() away_shots.groupby('Period')['Subtype'].value_counts()
@stevedix9186
@stevedix9186 3 года назад
Can someone help? Tutorial excellent and I've created pass maps etc. I'm trying to work out how I can plot 2 pitches side by side showing passes for 2 different players on the 2 pitches. I'm looking at subplots (is this the correct way of doing it?). I can get the 2 pitches but not in 1 figure. Any help or pointers, much appreciated. Thanks.
@paulpolizzi3421
@paulpolizzi3421 Год назад
This is amazing, i want to learn more about it, never coded in my life, would this work with the videos of my kids soccer U13 games? I've been looking for something to track data like this to help the coaches with the team to preform better. Thank you again.
@บรู้วว
@บรู้วว 4 года назад
Fantastic lesson 💪
@umangjaiswal768
@umangjaiswal768 Год назад
where to get the tracking data of champions league or any current matches . any one ??
@abdelkrimkobbi
@abdelkrimkobbi Год назад
first of all thanks for your course and I would like to know if you have in your Channel videos for beginner as me.cheers coach
@yossefissa3780
@yossefissa3780 3 года назад
please i need to ask how do you write the code on console it gaves me error is there a special console for that or how can i do it with normal console
@debapamghosh
@debapamghosh 4 года назад
Hello People, I am very new to Python. Need some help. When I am trying to compile the modules Metrica_IO and Metrica_Viz I am getting an error "ModuleNotFoundError: No module named ". I have downloaded all the codes in the same working folder. Is there anything I am missing?
@BigDataSport
@BigDataSport 4 года назад
You should have working directory to the folder where this files are, the root folder of LaurieOnTracking Repo you download
@robbiedunne8170
@robbiedunne8170 4 года назад
Hi Debapam, this confused me too and as I have replied to Alex earlier, I said I'd let you know so you didn't remain stuck. You need to download the GitHub files with Metrica_IO.py etc... The __init__.py file contains what is needed to recognise the import metric_IO part as a package. Let me know if you need any further help.
@gonzalovarela2016
@gonzalovarela2016 4 года назад
@@robbiedunne8170 i couldn´t find the __init__.py. Where it is?
@robbiedunne8170
@robbiedunne8170 4 года назад
​@@gonzalovarela2016 hey Gonzalo, you have to create the file yourself. It's just a file called __init__.py and it should have these two lines in it (and nothing else): import Metrico_IO as mio import Metrica_Viz as mviz It has to be in the same folder as the python files you're working on. Any other problems, let me know and I'll walk you through it.
@mayureshkhanolkar4948
@mayureshkhanolkar4948 4 года назад
@@robbiedunne8170 i tried creating the file and have added both the lines. Still for some reason it shows No module named Error. Any help would be appreciated. Thanks
@juank46983
@juank46983 4 года назад
Great!. I was trying with some python code to do some predictions, but it is not too easy.
@stevengallagher360
@stevengallagher360 4 года назад
Very new user to python here, but my locations appear inverted to what you have. For example the shot is taken from the same location but from the post nearest the bottom of the screen. Also how do I get the pitch object to pop out in a separate window, mine just appears in the python console? TIA
@jameshill274
@jameshill274 4 года назад
The figure placement is a preference you need to set. Tools -> Preferences -> IPython control -> Graphics -> Graphics -> Change Graphics backend to 'Automatic'.
@stevengallagher360
@stevengallagher360 4 года назад
James Hill thanks I figured it out eventually - also I think the inverted issue was addressed in a later tutorial. Thanks all
@AndersonSantos-bh5zt
@AndersonSantos-bh5zt 4 года назад
@@stevengallagher360 This issue is related to that no at Metric_IO.py? At that code, the variable data[y_columns] is multiplied by -1. Originally (in green not), this variable was not multiplied by -1. Is that why the points ​were inverted in relation to y coordinates?
@pippoh9290
@pippoh9290 4 года назад
I seem to get an error when making the tiny amendment to the code to plot the passes leading up to the second goal : Code: # plot passing move in run up to goal mviz.plot_events( events.loc[1109:1118], indicators = ['Marker','Arrow'], annotate=True ) Error: File "C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\patches.py", line 3219, in ensure_quadratic_bezier "'path' is not a valid quadratic Bezier curve") ValueError: 'path' is not a valid quadratic Bezier curve The default code runs fine for the first goal. I am also able to plot the second goal itself, just not the passes leading up to it. Has anyone else had this problem? Many thanks !
@karthikarunr8505
@karthikarunr8505 4 года назад
Yep I got this problem with the third goal. What you need to do is plot from the first pass before the goal until the shot. If you try include things like Interception or ball Recovery, it just won't plot.
@muhammadfaisal6052
@muhammadfaisal6052 4 года назад
Heloo i try to learn but i got some problem when inputing this code events = pd.read_csv('{}/{}'.format(DATADIR, eventfile)) # read data The result said filenotfounderror iam pretty sure placed the data in the right folder can you help me thank you
@jonathan1766
@jonathan1766 4 года назад
When you define DATADIR you have to change the code of the video and write your own path to the file
@muhammadfaisal6052
@muhammadfaisal6052 4 года назад
@@jonathan1766 sorry, but what should i change i didn't know the code that guide to folder location and should i change? Sorry i am new in pyton
@jonathan1766
@jonathan1766 4 года назад
@@muhammadfaisal6052 i'm not sure to get what's your problem, but I would say that you did not change the line of the variable DATADIR so the program can't find the folder. Check where is the folder located in your computer (could be on your disk C:// or D:// etc) and change the original path in your the code
@012mauricio
@012mauricio 4 года назад
Brilliant
@4lex355
@4lex355 4 года назад
i would like to ask you, if you could add proper titles, because if you said it is part 4, how can i now which part 3,2,1? thank you.
@tanmaymahato2202
@tanmaymahato2202 3 года назад
*Introduction* will always be in part 1
@de4thmoon
@de4thmoon 3 года назад
For the 2nd question; i couldnt find the solution on how to do it on 1 figure. I can seperate the events of goal from the other shots and do necessary changes but can not display on them in 1 figure. It would be nice if you can give the solutions as well :) Thank you for the video!
@ivoxozo3711
@ivoxozo3711 3 года назад
Hear my solution: shots9=home_shots[home_shots.From=='Player9'] fig,ax = mviz.plot_pitch() for i in shots9.index: if ('-GOAL') in shots9.loc[i,"Subtype"]: ax.plot( shots9.loc[[i],'Start X'], shots9.loc[[i],'Start Y'], 'go' ) ax.annotate("", xy=shots9.loc[i][['End X','End Y']], xytext=shots9.loc[i][['Start X','Start Y']], alpha=0.6, arrowprops=dict(arrowstyle="->",color='r')) else: ax.plot( shots9.loc[[i],'Start X'], shots9.loc[[i],'Start Y'], 'rx' ) ax.annotate("", xy=shots9.loc[i][['End X','End Y']], xytext=shots9.loc[i][['Start X','Start Y']], alpha=0.2, arrowprops=dict(arrowstyle="->",color='b'))
@terlivarshathkumar4108
@terlivarshathkumar4108 3 года назад
Did you find out any alternative for this?
@alexorlandini7792
@alexorlandini7792 4 года назад
when I try to change the coordinate system and import metric_IO I get the error message ModuleNotFound: no module named ‘Metrica_IO’ can anyone advise on what I’m doing wrong ?
@benjerome9738
@benjerome9738 4 года назад
I believe you need to import the module into your working directory for whichever version of Python your using e.g. using pip installer. You can find details here - docs.python.org/2/tutorial/modules.html#packages
@robbiedunne8170
@robbiedunne8170 4 года назад
Alex, this confused me too and I figured I'd reply to let you know how I figured it out. You need to download the GitHub files with Metrica_IO.py etc... The __init__.py file contains what is needed to recognise the import metric_IO part as a package. Let me know if you need any further help.
@alexorlandini7792
@alexorlandini7792 4 года назад
Robbie Dunne thanks that seems to have fixed it!
@Premiercoaching
@Premiercoaching 3 года назад
@@robbiedunne8170 I have encountered the same issue but I don't understand your instruction. Can you clarify please?
@seanmenzies1986
@seanmenzies1986 3 года назад
I had the same issue. The most simple workaround is to just copy and paste the functions from the metrica_IO and metrica_viz py files and run them in the console. Then when you copy and paste code from the main py file, just drop the mio. and mviz from the code lines.
@EchoMirage72
@EchoMirage72 Год назад
I find this absolutely fascinating and would love to try and apply this to other games such as Warhammer 40k. My question is how is the data set collected initially. That would be the first step in being able to do any kind of visual analysis of Wh40K players who play professionally.
@bautista333
@bautista333 3 года назад
Would anyone care to share how they made the the 4th exercise? 🙏🏾
@mahmoudalqaderi3003
@mahmoudalqaderi3003 3 года назад
I love you broo, thank you
@mauduynguyen5808
@mauduynguyen5808 4 года назад
Anybody know how to get events data like in the video of any real match?
@terlivarshathkumar4108
@terlivarshathkumar4108 3 года назад
I was looking for the same.. Have you got any leads?
@abdelilahazelhak924
@abdelilahazelhak924 2 года назад
very good bro
@SoCalMalaise
@SoCalMalaise 4 года назад
Why don't you use jupyter notebooks?
@seanmenzies1986
@seanmenzies1986 3 года назад
This is the first time I'm using Spyder but it seems to combine the features of Jupyter and more traditional IDEs. You can write and execute entire scripts in one panel while running individual lines in another. Pretty cool!
@TheHamza344
@TheHamza344 4 года назад
hello ineed code for player movement etc if anyone can help
@louisschule7366
@louisschule7366 4 года назад
Your accent, voice and intonation sounds so much like Boris Johnson, wow.
@eddiejwebster
@eddiejwebster 4 года назад
Nope
Далее
Exploratory Data Analysis with Pandas Python
40:22
Просмотров 489 тыс.
skibidi toilet 77 (part 4)
05:20
Просмотров 14 млн
How to Make Graphs Like The Athletic in Python
31:38
Просмотров 42 тыс.
Solving real world data science tasks with Python Pandas!
1:26:07
Python 101: Learn the 5 Must-Know Concepts
20:00
Просмотров 1,2 млн
This Is Why Python Data Classes Are Awesome
22:19
Просмотров 811 тыс.
Technical and Tactical Football Analysis Through Data
39:35
The Sad Reality of Being a Data Scientist
8:55
Просмотров 85 тыс.