How it works
Two models make each week's picks. One predicts who wins, and the other predicts by how many points.
Who wins
A LightGBM classifier gives each team's chance of winning. That's the win chance on the picks page.
By how much
A LightGBM regressor predicts the final margin. That's the model line, and comparing it with the Vegas line decides which side the model takes against the spread.
What goes in
Rankings, roster talent, opponent-adjusted efficiency, and each team's stats so far this season. Both models are trained on the 2015 to 2025 seasons and get fresh data every week. Early in the season there isn't much to go on, so the first few weeks are the least accurate.
When they disagree
The two models are trained separately, so once in a while a team gets the better win chance while the other team is favored on the model line. It happens in close games, where both numbers are near even.
The code is on GitHub.