AI NBA Player

An attempt to make my favorite NBA players play against me.

Using tracking data from the 2015-16 NBA season, I created an algorithm that finds when a player I specify is guarding a ball-handler. I then trained an LSTM to imitate the player as a "ghost" defender. Below you see two real possessions from the 2015-16 NBA season. The ball handler is the black dot, the real defenderis the gold dot, and the AI I trained is the red dot.

Skills: Deep Learning, Python

Tools: PyTorch, Python, NumPy, Pandas