| evalerror_bin | R Documentation |
A function to evaluate XGBoost models by weighted mean error for binary outcome (0/1). This function is a customized error function to
plug in the function wXGBoost() for complex survey data.
evalerror_bin(preds, dtrain)
preds |
Predicted binary values ( |
dtrain |
An object of |
A list of two components:
metric : A string labelled as weighted.error.
value : A numeric value of weighted mean error.
xgboost::xgb.train() for relevant arguments and return values in detail.
wXGBoost() for detailed information on implementation.
optim_wxgb_para() for detailed optimization and examples.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.