Skip to contents

Estimate the accuracy of the trained xgboost model

Usage

getAccXGboost(model, data, outcome)

Arguments

model

output xgboost model from `buildXGboost()`

data

dataframe, input data used to train the model

outcome

string, name of the outcome variable

Value

a number from 0 to 1 indicating the accuracy of the model (1 being perfect accuracy)

Examples

if (FALSE) { # \dontrun{
getAccXGboost(xgb, voteData, "vote")
} # }