-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Base web app structure complete and simulation data generated.
- Loading branch information
1 parent
9eb924b
commit 8298f94
Showing
573 changed files
with
2,524 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,70 @@ | ||
# NBA_AI | ||
Using Generative AI tools to explain and predict the outcomes of NBA games. | ||
|
||
|
||
|
||
## Explain | ||
Take in play by play data of arbitrary length and generate a summary of the game. This could be a summary of the game, a summary of a player's performance, or a summary of a team's performance. | ||
|
||
``` | ||
def explain(pbp_logs, prompts): | ||
""" | ||
Generate a summary of the game using the play by play logs. | ||
If no prompts are given, generate a general summary of the game action that the logs include. | ||
If prompts are given, generate a summary of the game action that the logs include that is relevant to the prompts. | ||
Examples of prompts include: | ||
- "What was the most exciting part of the game?" | ||
- "What was the most exciting part of the game for the Lakers?" | ||
- "What was the most exciting part of the game for LeBron James?" | ||
- "How many points did LeBron James score?" | ||
- "Who was the best player in the game?" | ||
""" | ||
pass | ||
``` | ||
|
||
|
||
## Predict | ||
Take in play by play data of arbitrary length and generate a prediction of the outcome of the game. This could be a prediction of the final score, a prediction of the winner, or a prediction of the final score of a player or team. | ||
|
||
``` | ||
def predict(pbp_logs, game_id, prompts): | ||
""" | ||
Generate a prediction of the game outcome using the play by play logs. | ||
If no game_id is given, generate a predictions for the game in the logs. | ||
If a game_id is given, generate a prediction for the game with that id. | ||
If no prompts are given, generate a general prediction of the game outcome that the logs include. | ||
If prompts are given, generate a prediction of the game outcome that the logs include that is relevant to the prompts. | ||
Examples of prompts include: | ||
- "What will be the final score of the game?" | ||
- "Who will win the game?" | ||
- "What will be the final score of the game for the Lakers?" | ||
- "How many points will Lebron score in the game?" | ||
- "Who will be the best player in the game?" | ||
- "What will happen on the next play?" | ||
""" | ||
pass | ||
``` | ||
|
||
## Generate | ||
Take in play by play data or a game id and generate play by play logs. | ||
|
||
``` | ||
def generate(pbp_logs, game_id, log_count): | ||
""" | ||
Generate play by play logs based of the play by play logs given. | ||
If no game_id is given, generate play by play logs for the game in the logs. | ||
If a game_id is given, generate play by play logs for the game with that id. | ||
If no log_count is given, generate a single play by play log. | ||
If a log_count is given, generate that many play by play logs. | ||
""" | ||
pass | ||
``` | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.