Skip to contents

Reads one of the raw model vectors with xgboost::xgb.load.raw() and checks its feature names against the bundle manifest, so a consumer gets an error instead of silently scoring with a model whose feature contract changed.

Usage

cfb_model(name)

Value

An xgb.Booster.

Examples

model <- cfb_model("cfb_ep_model")
xgboost::getinfo(model, "feature_name")
#> [1] "TimeSecsRem"          "yards_to_goal"        "distance"            
#> [4] "down_1"               "down_2"               "down_3"              
#> [7] "down_4"               "pos_score_diff_start"