xg.train_model: Train xG model

Description Usage Arguments Value

Description

Train xG model

Usage

1
2
xg.train_model(data_dir = "./data", train_season = c(2016:2017),
  test_season = c(2018))

Arguments

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

Value

the xGmodel


pbulsink/hockeyR documentation built on May 15, 2019, 4:16 p.m.