rmw_predict_nested_sets_by_year: Function to make predictions by meteorological year from a...

View source: R/rmw_predict_nested_sets_by_year.R

rmw_predict_nested_sets_by_yearR Documentation

Function to make predictions by meteorological year from a random forest models using a nested tibble.

Description

Function to make predictions by meteorological year from a random forest models using a nested tibble.

Usage

rmw_predict_nested_sets_by_year(
  df_nest,
  variables = NA,
  n_samples = 10,
  aggregate = TRUE,
  n_cores = NULL,
  verbose = FALSE
)

Arguments

df_nest

Nested tibble created by rmw_model_nested_sets.

variables

Variables to randomly sample. Default is all variables used for training the model with the exception of date_unix, the trend term.

n_samples

Number of times to sample the observations from each meteorological year and then predict.

aggregate

Should all the n_samples predictions be aggregated?

n_cores

Number of CPU cores to use for the model calculations.

verbose

Should the function give messages?

Value

Nested tibble.

Author(s)

Stuart K. Grange

See Also

rmw_nest_for_modelling, rmw_model_nested_sets


rmweather documentation built on Nov. 21, 2023, 5:06 p.m.