-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add expected pass model #242
Comments
I have started working on the implementation of the model and am currently encountering two major pain points:
|
Hi @jonas-bischofberger, thanks for your message and great to see that you started!
For now, there are two scenarios: if you need only the tracking and event data at the moment of the pass, use the
Lastly, check out the If you have any ideas/updates on how to make the package more intuitive and easier to use, please let me know so I can make some changes to the package and make it easier for anyone to use. |
For point 2, would you prefer to have a double indexed (frame number, player) |
For the time being, I'm using this function to do the conversion. I didn't test it thoroughly but it seems to do the job for my current purposes!
I'm also basically done with the implementation of the model, but I decided that I would like to bundle the core functionality of my model into its own library so that it can be used as independently as possible. I currently have what I believe is a relatively efficient backend implementation and an interface that comes with (a) a function that adds a column "xC" (expected completion) to a dataframe containing passes given a supplementary dataframe containing tracking data and (b) a function that adds a column "AS" and a column "DAS" adding (dangerous) accessible space to tracking data. I would need a little bit of guidance how to proceed from here - I can offer to implement the functionality of (a) and (b) adding the respective columns to databallpy dataframes using my own to-be-published library. Also I could write a dashboard or notebook that walks through + illustrates the computational steps involved in the model by an example, without implementing the vectorized version in databallpy itself. Let me know what you think, @Alek050! |
Great to hear you are making progress and are planning on implementing the model in its own package! I am happy to share that the new version of DataBallPy will have a functing to normalize tracking data relative to attacking direction (see develop docs). Depending a little on how well you are planning to maintain your own package, I think it would be most logical to do as you propose: add a small translator in databallpy between databallpy format to what your package expects as input, and get back the xC, AS, and DAS (depending on what is being asked by the user). With that, I would still really love to have a notebook explaining how you get to your results in code, text and visualizations. For the precise vectorized implementation we will just refer to your package and paper so its clear where the nerds can find the real code. I think that the implementation in DataBallPy has to wait untill you released your package, but if you want you can get started on the docs for some explenations in the calculations etc. (should be added in If you have any questions you know where to find me (we can also plan in a meeting to discuss this). |
A physical model that predicts the likelyhood of a successfull pass given the locations and velocities of all players, the initial ball velocity, and the ball moving angle.
The text was updated successfully, but these errors were encountered: