andrewRowlinson / mplsoccer

Football pitch plotting library for matplotlib
MIT License
405 stars 82 forks source link

adding expected threat (xT) example. #49

Closed andrewRowlinson closed 2 years ago

andrewRowlinson commented 2 years ago

Adding an expected threat example.

andrewRowlinson commented 2 years ago

@karunsingh Hi this the expected threat pull request. Grateful if you could take a look. It doesn't seem to converge quickly as in the blog post. When it finally converges the numbers are a lot higher than in the blog post (similar if run for only a few iterations).

andrewRowlinson commented 2 years ago

Here is the docs built for this example: https://mplsoccer.readthedocs.io/en/feature-xt/gallery/pitch_plots/plot_xt.html#sphx-glr-gallery-pitch-plots-plot-xt-py.

I'm planning on adding more text to describe it when I get it work.