| evalerror_reg | R Documentation |
A function to evaluate XGBoost models by weighted mean squared error for linear regression. This function is a customized error function for complex survey data.
evalerror_reg(preds, dtrain)
preds |
Predicted values from the model |
dtrain |
An object of |
A list of two components:
metric: A string labelled as weighted.mse.
value : A numeric value of weighted mean squared error (MSE).
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.