View source: R/dorem-control.R
dorem_loss_func | R Documentation |
This function is used inside the objective function to return model fit. Default loss function is MSE.
dorem_loss_func(obs, pred, weights, na.rm)
obs |
Numeric vector. Observed values |
pred |
Numeric vector. Predicted values |
weights |
Numeric vector. Weights for weighting residuals |
na.rm |
Logical |
Mean Squared Error (MSE)
dorem_loss_func(seq(1:10), 5, rep(1, 10), na.rm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.