Skip to main content

Analyze and simulate NCAA march madness tournaments

Project description

Welcome to Bracketology!

Bracketology logo

The goal of bracketology is to speed up the analysis of NCAA march madness data and help develop algorithms for filling out brackets.

Documentation:

https://bracketology.readthedocs.io/en/latest/

GitHub Repo:

https://github.com/stahl085/bracketology

Issue Tracker:

https://github.com/stahl085/bracketology/issues

Backlog:

https://github.com/stahl085/bracketology/projects/1?fullscreen=true

PyPI:

https://pypi.org/project/bracketology/

Before You Start

Here are the main things you need to know:
  • The main parts of this package are the Bracket objects and simulator functions in the simulators module

  • A Bracket is composed of Team and Game objects

  • Game objects have two Team objects as attributes, and the round number

  • Teams have a name, seed, and dictionary for statistics

  • Simulator functions have 1 argument of type Game, and return the winning Team of that Game

Installation

Install from pip

pip install bracketology

Or download directly from PyPi

Getting Started

Import bracketology and create a bracket from last year.

from bracketology import Bracket, Game, Team

# Create a bracket object from 2019
year = 2019
b19 = Bracket(year)

Tutorial

Inspecting the Bracket Object

This is how you can look at your brackets

b19.regions
# or
b19.round1
# or
b19.result.get('first')

Creating a Simulator Algorithm

A simulator needs to take in a Game and Return a Team

team1 = Team(name='Blue Mountain State',seed=1)
team2 = Team(name='School of Hard Knocks',seed=2)

game1 = Game(team1, team2, round=1)
def pick_a_random_team(Game):
    return Team

Evaluting Simulator Results

Here we can evaluate two different simulators

# TBD

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bracketology-0.0.8.tar.gz (27.7 kB view details)

Uploaded Source

File details

Details for the file bracketology-0.0.8.tar.gz.

File metadata

  • Download URL: bracketology-0.0.8.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

File hashes

Hashes for bracketology-0.0.8.tar.gz
Algorithm Hash digest
SHA256 5b1c1880fbf85bf0cfb8b87f84ea225ca595d78adbe7a610fc278e06301489d4
MD5 1536eedf0d69036b6cee3a3f3d798f73
BLAKE2b-256 6ff42b35fee22862434346d77df4f730a4883fe5de8b98bed4b090b3a7928bda

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page