| eval_loss | R Documentation |
A function to evaluate XGBoost models by weighted mean log loss for logistic regression. This function estimates predicted probabilities from the predicted binary outcomes and computes the weighted mean of log likelihood values for Bernoulli distribution. This function is a customized error function for complex survey data.
eval_loss(preds, dtrain)
preds |
Predicted binary values ( |
dtrain |
An object of |
A list of two components:
metric: A string labelled as weighted.mean.logloss.
value : A numeric value of weighted mean of log loss.
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.