Skip to contents

Title

Usage

get_train_test_data(x, y, trainNames)

Arguments

x

quanteda dfm object

y

data frame with classes

trainNames

character vector of document names

Value

list of xgb.DMatrices for training and testing