Giter VIP home page Giter VIP logo

ipython-soccer-predictions's Introduction

ipython-soccer-predictions

Machine learning applied to soccer

Sample IPython notebook with soccer predictions

We’ve had a great time giving you our predictions for the World Cup (check out our post before the quarter finals and the one before the semi-finals). So far, we’ve gotten 13 of 14 games correct. But this shouldn’t be about what we did - it’s about what you can do with Google Cloud Platform. Now, we are open-sourcing our prediction model and packaging it up so you can do your own analysis and predictions.

We have ingested raw touch-by-touch gameplay day from Opta for thousands of soccer matches using Google Cloud Dataflow and polished the raw data into predictive statistics using Google BigQuery. You can see BigQuery engineer Jordan Tigani (+JordanTigani) and developer advocate Felipe Hoffa (@felipehoffa) talk about how we did it in this video from Google I/O.

Project setup, installation, and configuration

Deploying

How to setup the deployment environment

Pre-work: Get started with the Google Cloud Platform and create a project:

Sign up at https://console.developers.google.com/, create a project, and remember to turn on the Google BigQuery API. Install the Google Cloud SDK following the instructions at https://developers.google.com/cloud/sdk/.

How to deploy

Start your instance:

gcloud compute instances create ipy-predict \
  --image https://www.googleapis.com/compute/v1/projects/google-containers/global/images/container-vm-v20140522 \
  --zone=us-central1-a --machine-type n1-standard-1 --scopes storage-ro bigquery

Ssh to your new machine:

gcutil ssh --ssh_arg "-L 8888:127.0.0.1:8888" --zone=us-central1-a ipy-predict

Download and run the docker image we prepared:

sudo docker run -p 8888:8888 fhoffa/ipython-predictions:v1

Wait until Docker downloads and runs the container, then navigate to the notebook:

http://127.0.0.1:8888/notebooks/soccer/predict/wc-final.ipynb

Contributing changes

Licensing

ipython-soccer-predictions's People

Contributors

fhoffa avatar jtigani avatar vmarmol 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.