Skip to content

kelanyll/poisson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Predicting goals scored with Poisson regression written in C++

This is a toy project to predict goals scored using Poisson Regression on the Premier League 11/12 season. It uses C++, unconventionally, instead of the industry standard for similar use cases - Python and R. See my blog for more details: https://www.kelanyll.com/posts/poisson-cpp/.

Coding standards and principles

As this was in part written to improve my C++ skills, I tried to follow a set of principles:

  • Ensure we're using move semantics wherever possible. This can be useful to reduce the instances where we're copying heavy 2d data structures.
  • Follow the C++ Core Guidelines and prefer uniform initialization.
  • Use test-driven development. Although the main reason for this is that it shortens the feedback loop.
  • Keep the CMake configuration clean and flexible.

Development

This was developed on an x64-linux machine with dependencies on dataframe@1.22.0 and gtest@1.13.0.

We build the BOOM library from source and it's currently locked to this commit.

If using vcpkg to manage dependencies, run cmake with -DCMAKE_TOOLCHAIN_FILE=/usr/local/vcpkg/scripts/buildsystems/vcpkg.cmake. If CMakeCache.txt doesn't have any vcpkg variables, delete it and generate the build again.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published