Create predictions for a fitted model
Arguments
- object
(fitted model) the fitted model object returned from
fit.luz_module_generator()- newdata
(dataloader, dataset, list or array) returning a list with at least 1 element. The other elements aren't used.
- ...
Currently unused.
- callbacks
(list, optional) A list of callbacks defined with
luz_callback()that will be called during the training procedure. The callbacksluz_callback_metrics(),luz_callback_progress()andluz_callback_train_valid()are always added by default.- accelerator
(accelerator, optional) An optional
accelerator()object used to configure device placement of the components like torch::nn_modules, optimizers and batches of data.- verbose
(logical, optional) An optional boolean value indicating if the fitting procedure should emit output to the console during training. By default, it will produce output if
interactive()isTRUE, otherwise it won't print to the console.- dataloader_options
Options used when creating a dataloader. See
torch::dataloader().shuffle=TRUEby default for the training data andbatch_size=32by default. It will error if notNULLanddatais already a dataloader.
See also
Other training:
evaluate(),
fit.luz_module_generator(),
setup()