Skip to content
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

How to calculate xG for a single shot in a local match #2

Open
SMSadegh19 opened this issue Nov 7, 2023 · 2 comments
Open

How to calculate xG for a single shot in a local match #2

SMSadegh19 opened this issue Nov 7, 2023 · 2 comments
Labels
question Further information is requested

Comments

@SMSadegh19
Copy link

Hi. How can I calculate xG with your model for a single goal chance in a local match.
There is no data available. Only video of the game is available. I want to watch the video and manually write the data and then, use soccer_xg to calculate xG of that.

@probberechts
Copy link
Member

You can load one of the pretrained models, manually compute all required features and apply the model. But that would be tedious. Probably this is a better fit for your use case: https://torvaney.github.io/projects/xG.html

@probberechts probberechts added the question Further information is requested label Nov 7, 2023
@SMSadegh19
Copy link
Author

Thanks a lot. In the code, how can I put features as input?
Maybe I want to develop a github.io dashboard website like that you've sent. (But with more features.)
Giving input to the dashboard is work of another person.
Torvaney website is very simple and for example it doesn't have goalkeeper and player positions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants