Description
Simulates every possible batting order for a given lineup and displays summary statistics of the average runs (over a number of games) of the orders, and specific information about the top and bottom 5 orders. The user may choose how many games each order is simulated for, which players are in the lineup, or what each player's PA outcomes are in a single game (see sample files).
Data Source
Major TODOs
- Determine the accurate likelihoods of sacrifices and double plays for different out types
- Enable some sort of pinch hitting scheme (right now, each player hits the entire game)
- Enable some sort of pitcher dependent hitting results (even as simple as right-y/left-y; right now hitting stats are full season aggregates)
- Include edge cases like stealing, wild pitches, etc.
- More detailed data (i.e. did a double go to right or left field?)
- Player specific data (i.e. how often does a player try to steal?)
Installation
pip install batting-order-analysis
Usage
driver.py and driver.ipynb supply a basic interface, check them out
Metadata
Release files for batting-order-analysis 0.0.52
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| batting_order_analysis-0.0.52.tar.gz | 37.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| batting_order_analysis-0.0.52-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 76.6 kB
Release files / batting_order_analysis-0.0.52.tar.gz
| Download URL | batting_order_analysis-0.0.52.tar.gz |
|---|---|
| Size | 37.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8145dae5e134137b5dd2cf42b0d6ff8c4a24079d7e2f5ee44b435e0d45cb917d
|
|
BLAKE2b-256 checksum How to use checksums |
8ceeaafbc30687877e1ed7a04401ff1731543d0ee4fa797a15b327164db4bce7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
|
Release files / batting_order_analysis-0.0.52-py3-none-any.whl
| Download URL | batting_order_analysis-0.0.52-py3-none-any.whl |
|---|---|
| Size | 38.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e25bdcb01dfa39a47d893c9d37335a4b4dd77c0da80a2604dd882b03cfc1b8e
|
|
BLAKE2b-256 checksum How to use checksums |
583a10dc5193c7b54f837956eca10cd3b74e5f88ed50f542cf5856929eeaa012
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
|