Skip to content

Linear regression model to predict a golfer's expected score based on their stats, or vice versa.

Notifications You must be signed in to change notification settings

mvrahas/predict-golf-score

Repository files navigation

Predict Golf Score

About

Understanding stats about your golf game can help you improve. This linear regression model (built with Scikit-learn) can predict a golfer's expected score based on their stats, or vice versa. I created this as my final project in a General Assembly boot camp.

My project was featured on Towards Data Science! View on Medium

Run The Project

Open the model using Jupyter Notebook.

-OR-

Deploy the model to Heroku and access the functionality using a REST API. Documentation below.

Deploy

Documentation

Stats to Score Predict a golfers score based on his/her stats (Putts, Fairways, Greens).

GET {{url}}/stats-to-score?putts=32&fairways=7&greens=4

-->
{
  "score": 89.60187727842703
}

Score to Stats Predict a golfers stats (Putts, Fairways, Greens) based on his/her score.

GET {{url}}/score-to-stats?score=79

-->
{
  "fairways": 7.292152340471098, 
  "greens": 8.224321683108784, 
  "putts": 30.231101484019675
}

About

Linear regression model to predict a golfer's expected score based on their stats, or vice versa.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published