SRxgboost_data_prep: SRxgboost_data_prep

View source: R/SRxgboost_data_prep.R

SRxgboost_data_prepR Documentation

SRxgboost_data_prep

Description

Prepare data for SRxgboost modeling. Creates data for xgboost modeling function SRxgboost_run (y, partitions, train, test). Creates a sparse matrix and dmatrix.

Usage

SRxgboost_data_prep(
  yname,
  data_train,
  data_test = NULL,
  no_folds = NULL,
  folds = NULL,
  eval_index = NULL,
  nthreads = NULL,
  objective = NULL,
  weights = NULL,
  label_encoding = TRUE,
  add_random_variables = FALSE,
  check_covariate_drift = FALSE
)

Arguments

yname

character

data_train

data.frame

data_test

data.frame

no_folds

integer

folds

list, output from xxx

eval_index

vector

nthreads

integer

objective

character: one of "regression", "classification", "multilabel"

weights

table of weights (multilabel classification with "weighted_precision" only)

label_encoding

boolean

add_random_variables

boolean

check_covariate_drift

boolean

Value

assigns output into global workspace


samuelreuther/SRxgboost documentation built on March 30, 2025, 12:48 a.m.