Skip to main content

Build Status Documentation Status

Estimate Win Probability (WP) for plays in NFL games:

>>> import pandas as pd
>>> from nflwin.model import WPModel
>>> standard_model = WPModel.load_model()
>>> plays = pd.DataFrame({
... "quarter": ["Q1", "Q2", "Q4"],
... "seconds_elapsed": [0, 0, 600],
... "offense_team": ["NYJ", "NYJ", "NE"],
... "yardline": [-20, 20, 35],
... "down": [1, 3, 3],
... "yards_to_go": [10, 2, 10],
... "home_team": ["NYJ", "NYJ", "NYJ"],
... "away_team": ["NE", "NE", "NE"],
... "curr_home_score": [0, 0, 21],
... "curr_away_score": [0, 0, 10]
... })
>>> standard_model.predict_wp(plays)
array([ 0.58300397,  0.64321796,  0.18195466])

For full documentation, including information about methods and accuracy, click here.

License

MIT. See license file.

Release files for nflwin 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nflwin 1.0.1
File Size Uploaded
nflwin-1.0.1.tar.gz 17.0 kB Details

Release files / nflwin-1.0.1.tar.gz

Download URL nflwin-1.0.1.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4150000168a704bdadc46f5bf5ff78da5a5b973fb1845fd3c091de1e874abe8d
BLAKE2b-256 checksum
How to use checksums
b47e3560eca964829d67909f8fcb5cc2636a17b28aa243b3d1b2c9d0f08d4007
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page