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.
Arguments
- name
Name of the model object, e.g.
"cfb_ep_model". One of cfb_ep_model, cfb_wp_spread_model, cfb_wp_naive_model, cfb_wp_ot_reach_model, cfb_fg_model, cfb_fd_model, cfb_two_pt_model, cfb_xpass_model, cfb_cp_model, cfb_cp_air_yards_model or cfb_qbr_model.
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"