Coder Social home page Coder Social logo

ncaa's Introduction

NCAA

The goal of this project is to develop a collection of scripts/routines to help predict the odds of the NCAA tournament. To clarify, these programs do NOT build a "perfect bracket", they predict the odds! (Of course if you wanted to just go with the odds, you could use this to make a bracket, purely from machine predictions)

This project started in 2014 with a Kaggle competition but the great thing about the tourney is, it happens every year.

The input data may grow/change depending on what seems to be working, and what information is available/reliable.

CURRENT Modules

Two current prediction attempts exist:

  1. Chessrank metric; "chessrank"

  2. Matrix Factorization / Collaborate Filtering; "matrix_factorization"

split_seasons.py

Minimal script to quickly split the seasons.csv into multiple seasonX.csv in a directory structure.

season_accumulator.py

Gathers stats for each seasonX.csv and builds a Rating Matrix in the collaborative filtering sense.

Using the netflix movie rating paradigm as an example, each user has rated a collection of movies. The matrix is N_users x N_movies and is in general not square and is missing many entries (i.e. all users have not rated all movies).

By analogy, for sports contents, there are N_teams and N_opponents (in this case N_teams==N_opponents) where each N_team rates a subset in N_opponents. In this case, the matrix is square but still has many missing entries, that is to say, all teams have not played all opponents.

Metric: game_score and game_rating Uses a chessrank style system where ratings are awarded based on point differential.

Outputs: YmatrixX.npy Each "rating" matrix is written as a file in the directory structure used by split_seaons.py.

matrix_factorization.py

Input: Rating Matrix Y Ouput: P, Q matrix which optimally factorize Y given K latent features.

main.py

Calls each module

Loads all YmatrxX.npy matrices in the directory structure and procudes a completed rating matrix by finding an optimal factorization using N_latent features as the inner product dimension.

Outputs: eYmatrix.npy

ncaa's People

Contributors

phdntom avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.