View source: R/metric_error_checking.R
function containing all of the error catching for calculating model metrics This includes vectors being of the correct length and type, actuals and predictions agreeing with the distribution family and the distribution family being allowed
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.