fit.luz_module_generator | R Documentation |
nn_module
Fit a nn_module
## S3 method for class 'luz_module_generator'
fit(
object,
data,
epochs = 10,
callbacks = NULL,
valid_data = NULL,
accelerator = NULL,
verbose = NULL,
...,
dataloader_options = NULL
)
object |
An |
data |
(dataloader, dataset or list) A dataloader created with
|
epochs |
(int) The maximum number of epochs for training the model. If a
single value is provided, this is taken to be the |
callbacks |
(list, optional) A list of callbacks defined with
|
valid_data |
(dataloader, dataset, list or scalar value; optional) A
dataloader created with |
accelerator |
(accelerator, optional) An optional |
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 |
... |
Currently unused. |
dataloader_options |
Options used when creating a dataloader. See
|
A fitted object that can be saved with luz_save()
and can be
printed with print()
and plotted with plot()
.
predict.luz_module_fitted()
for how to create predictions.
setup()
to find out how to create modules that can be trained with fit
.
Other training:
evaluate()
,
predict.luz_module_fitted()
,
setup()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.