interaction_search: interaction_search

Description Usage Arguments

View source: R/find_interactions_untested.R

Description

This function runs the XGBfi utility on a trained xgboost model to identify interactions to be included in future model interations.

Usage

1
2
3
interaction_search(mdl, features, XGBfiBin = "~/Kaggle/xgbfi/bin/",
  filterExp = NULL, XGBfiParams = list(d = 3, g = -1, t = 100, k = 100, h =
  10), intern = FALSE)

Arguments

mdl

A trained xgboost model of class xgb.Booster

features

A list of the feature names used in the model (ordering must be consistent with the dmatrix used to train the model)

XGBfiBin

The file path to the bin of the XGBfi utility

filterExp

A character expression that tells the process how to filter the XGBfi results. e.g. Gain > 2000

XGBfiParams

A named list that contains the parameters to be passed to the cli of the XGBfi utility.

intern

Passed to the system command (internalise console output or not)


gm209/gmtools documentation built on May 22, 2019, 2:39 p.m.