Construct a nested_fit S3 object
nested_fit.Rd
Construct a nested_fit object that holds the early and late model plus their hyperparameters.
Arguments
- model1
An S3 object with a
predict
method. The early model.- model2
An S3 object with a
predict
method. The late model.- error_grid
named numeric matrix. Entry (i, j) is the validated metric of the nested model with the early model having the i-th and the late model having the j-th of their respective hyperparameters (which are given as dimnames).
- best_hyperparams
A named list with the best hyperparameters.