Description Usage Arguments Value
Train xG model
1 2 | xg.train_model(data_dir = "./data", train_season = c(2016:2017),
test_season = c(2018))
|
data_dir |
the data directory with compiled .pbp files in season subfolders, also where to save model |
train_season |
vector of seasons (as season end year as integer) to use for training |
test_season |
vector of seasons (as season end year as integer) to use for testing |
the xGmodel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.