Description Usage Arguments Value See Also Examples
View source: R/metric_deviance.R
Returns The deviance of the predictions. Note: Predictions should be annualized (independent of exposure) Note: Low is good. 0 is perfect model
1 2 3 4 5 6 7 8 9 |
actual |
Array[Numeric] - Values we are aiming to predict. |
predicted |
Array[Numeric] - Values that we have predicted. |
weight |
Optional: Array[Numeric] - Weighting of predictions. If NULL even weighting is used |
family |
String - family of distribution. Must be in |
na.rm |
Optional: boolean - If |
rebase |
Optional: boolean - If |
tweedie_power |
Numeric - power of tweedie distribution if chosen in |
Numeric: deviance of the predictions
Other Metrics:
metric_mae()
,
metric_nloglik()
,
metric_pode()
,
metric_pove()
,
metric_rmse()
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.