Giter Site home page Giter Site logo

xg-linearmodel's Introduction

Purpose

Working off of my initial python/SQL based AHL xG model, I decided implement it as a linear model using tensorflow.

Usage

Scrape data

Prior to running the linear model, we’ll need to scrape data. The ahl_scraper.py script gets all x,y shot & goal locations at a certain strength from the AHL website and exports that to a csv file. This script should be run once to generate training data and a second time to generate the testing data.

command: Usage: python ahl_scraper.py [start game ID] [last game ID] [output csv name]

Where the game ID can be found by going to theahl.com website, finding the most recent completed game and extracting the game ID from the URL

for example, the game ID for this URL: https://theahl.com/stats/game-center/1019145 is 1019145

Future Work

Scraping richer data (data with more features) would allow one to predict xG not only for a (x,y,strength) combination but also additional features to train, evaluate and predict on.

Contact

Robin Wisniewski – LinkedIn[email protected]

xg-linearmodel's People

Contributors

r-wisniewski avatar

Watchers

 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.