Home / Companies / Twilio / Blog / Post Details
Content Deep Dive

Predict Wins and Losses with Sci-kit Learn Decision Trees and SMS

Blog post from Twilio

Post Details
Company
Date Published
Author
Lizzie Siegle
Word Count
2,186
Language
English
Hacker News Points
-
Summary

The author, Lizzie Siegle, uses machine learning and Twilio SMS to predict whether the Golden State Warriors won or lost a basketball game based on Klay Thompson's stats. She uses Decision Trees with Scikit-Learn to train a model that predicts the outcome of the game. The model is trained using data from Klay Thompson's 2018-2019 season, including his free-throw percentage, three-point percentage, field goal percentage, and other statistics. The author finds that Klay's free-throw percentage is better than his three-point percentage in predicting whether the Warriors won or lost. She also uses cross-validation to evaluate the model's accuracy and finds that it correctly predicts the outcome of the game approximately 77% of the time.