View source: R/supervised_model.R
| docformer_fit | R Documentation | 
Fits the DocFormer: End-to-End Transformer for Document Understanding model
docformer_fit(x, ...)
## Default S3 method:
docformer_fit(x, ...)
## S3 method for class 'docformer_tensor'
docformer_fit(x, config = docformer_config(), ...)
x | 
 Depending on the context: 
 The model currently support for image any image type that   | 
... | 
 Model hyperparameters.
Any hyperparameters set here will update those set by the config argument.
See   | 
config | 
 A set of hyperparameters created using the   | 
y | 
 A data frame  | 
docformer_model | 
 A previously fitted DocFormer model object to continue the fitting on.
if   | 
from_epoch | 
 When a   | 
A DocFormer model object of class docformer_fit It can be used for serialization, predictions, or further fitting.
When providing a parent docformer_model parameter, the model fitting resumes from that model weights
at the following epoch:
last fitted epoch for a model already in torch context
Last model checkpoint epoch for a model loaded from file
 the epoch related to a checkpoint matching or preceding the from_epoch value if provided
The model fitting metrics append on top of the parent metrics in the returned TabNet model.
docformer_model <- docformer_fit(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.