-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.yaml
68 lines (60 loc) · 2.62 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
project:
root: "${PROJECT_ROOT}" # Should be updated in the .env file.
database:
path: "${DATABASE_PATH}" # Should be updated in the .env file. Defaults to data/NBA_AI_BASE.sqlite
# Limited to avoid large volumes of calls to NBA Stats endpoints and long etl processes.
# Can be removed if desired. Database Updater should work for all season back to 2000-2001.
api:
max_game_ids: 20 # Only applies to game_ids input of Games API. Not the date input.
valid_seasons:
- "2023-2024"
- "2024-2025"
openai:
api_key: ${OPENAI_API_KEY}
web_app:
secret_key: ${WEB_APP_SECRET_KEY} # Should be updated in the .env file. Will be set automatically if not set in .env
nba_api:
pbp_live_endpoint: "https://cdn.nba.com/static/json/liveData/playbyplay/playbyplay_{}.json"
pbp_stats_endpoint: "https://stats.nba.com/stats/playbyplayv3?GameID={}&StartPeriod=0&EndPeriod=0"
schedule_endpoint: "https://stats.nba.com/stats/scheduleleaguev2?Season={season}&LeagueID=00"
players_endpoint: "https://stats.nba.com/stats/commonallplayers?LeagueID=00&Season={season}"
pbp_live_headers:
Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
Accept-Encoding: "gzip, deflate, br"
Accept-Language: "en-US,en;q=0.9"
Cache-Control: "max-age=0"
Connection: "keep-alive"
Host: "cdn.nba.com"
User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
pbp_stats_headers:
Host: "stats.nba.com"
User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0"
Accept: "application/json, text/plain, */*"
Accept-Language: "en-US,en;q=0.5"
Accept-Encoding: "gzip, deflate, br"
x-nba-stats-origin: "stats"
x-nba-stats-token: "true"
Connection: "keep-alive"
Referer: "https://stats.nba.com/"
Pragma: "no-cache"
Cache-Control: "no-cache"
schedule_headers:
User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"
Referer: "https://stats.nba.com/schedule/"
Accept: "application/json"
Accept-Language: "en-US,en;q=0.9"
Cache-Control: "no-cache"
# Set Default Predictor
default_predictor: "Baseline"
# Predictors Configuration
predictors:
Baseline: {}
Linear:
model_paths:
- "models/Ridge_Regression_2024-07-29T21:14:57.504620.joblib"
Tree:
model_paths:
- "models/XGBoost_Regression_2024-07-29T21:33:17.702300.joblib"
MLP:
model_paths:
- "models/MLP_Regression_2024-07-30T14:08:12.793153.pth"