Calculate the packing rate for a given pass in football (soccer)
Project description
Football Packing
[](https://www.python.org/downloads/release/python-370/)
This is a python package to calculate packing rate for a given [pass](<https://en.wikipedia.org/wiki/Passing_(association_football)>) in soccer. This is a variation of the metric created by [Impect](https://www.impect.com/).
One of the main variation of this metric from other traditional ones is that only the defending players who are in the scope of the pass are considered for packing and not all the defenders on the pitch. The other difference would be the fact that for defenders, their lines on the pitch are considered with respect to the pass direction. Sample Scenarios section on the doc has more details about these differences.
If a defender’s line is cut by a pass, they’re considered to be packed (+1 for that defender) even if the defender is not near the line of pass (pass is on one side of the pitch and defender is far away).So if an attacking player makes a long pass beyond the entire defense, then all the defenders would be considered as packed (+1), but in truth only few of the players would be near the line of pass and could have an impact on the outcome of the pass/play.
Also for different types of passes (forward, back & side) packing is still calculated but a constant is multiplied with the packing value based on the type of pass.
For a back pass, multiplying factor is -1.
For a side pass, multiplying factor is 0.5.
For a forward pass, multiplying factor is 1.
Disclaimer
The concept of packing belongs to [Impect](https://www.impect.com/) and I do not take credit for the metric.
This is an attempt to create an open source variation of it, with few modifications on how the metrics are calculated. The logic behind the metric calculations are explained in How packing is calculated section in the docs.
For any questions/feedback, reach out to me on twitter [@SamiraK93](https://twitter.com/Samirak93).
If you’d like to file any issues/updates, submit a PR on GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file football_packing-0.2.tar.gz.
File metadata
- Download URL: football_packing-0.2.tar.gz
- Upload date:
- Size: 4.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3bb210d65c55cd04876a59ad0dc6c80877bb1dba2a661f254ffc0d68021f228
|
|
| MD5 |
a704ebef7ef332a9655f9cd9dd145109
|
|
| BLAKE2b-256 |
f6fa879e645a6769a904790ca411d07fc69e1bffc34ec763365787a83005d838
|