Learn R Programming

rmweather (version 0.2.62)

rmw_model_statistics: Functions to extract model statistics from a model calculated with rmw_calculate_model.

Description

Functions to extract model statistics from a model calculated with rmw_calculate_model.

Usage

rmw_model_statistics(model)

rmw_model_importance(model, date_unix = TRUE)

Value

Tibble.

Arguments

model

A ranger model object from rmw_calculate_model.

date_unix

Should the date_unix variable be included in the return?

Author

Stuart K. Grange

Details

The variable importances are defined as "the permutation importance differences of predictions errors". This measure is unit-less and the values are not useful when comparing among data sets.

Examples

Run this code

# Extract statistics from the example random forest model
rmw_model_statistics(model_london)

# Extract importances from a model object
rmw_model_importance(model_london)

Run the code above in your browser using DataLab