GithubHelp home page GithubHelp logo

efl's People

Contributors

ianmtaylor1 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

shuyi1981

efl's Issues

Allow model classes to do simple game prediction plots themselves.

Add predictplot() method(s) to plot, based on PPD samples,

  • Game result distributions
  • Game score distributions (for goal models)
  • Game margin distributions (for goal models)
  • Game total goals distributions (for goal models)

These should be identical to the functionality that currently exists by adding GameResult, GameScore, GameMargin, or GameTotalGoals stats to a Predictor. i.e. the plots should look the same, and the tails should be binned as appropriate.

Also consider:

  • should there be a method for goal models that will put all four plots in a 2x2 grid for a particular game?
  • should these be methods of models, or exterior functions that take dataframes output from the predict() method?

Outsource posterior plotting to ArviZ

Let ArviZ do as much as possible, potentially posterior summaries and plots.

Option 1: model classes contain a to_arviz() method that returns InferenceData.
Option 2: model classes are themselves subclasses of InferenceData.

Probably needs to wait until ArviZ >= 0.6.2, since that version will add the predictions parameter in the from_pystan() function.

Plot aspect ratios

The aspect ratios of plots can be off. I noticed this when plotting game predictions (result, score, margin, total goals) in a 2x2 grid for multiple games.

Prepare for pystan version 3

  • For now, restrict dependency to pystan version 2.x
  • Keep an eye on how the pystan api will change in version 3.

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.