This function tries to adjust an automatic model for
breaking captchas using the rstudio/keras package. It creates a
keras::keras_model_sequential() and learns from the inputed
labeled data.
train_model_generator(
data,
frac_test = 0.1,
n_epochs = 30,
n_units = 256,
mult = 2,
batch_size = 64,
path = "./model.hdf5",
verbose = TRUE
)A list of previously-classified captchas read with
read_captcha(..., ans_in_path = TRUE) (see classify())
Fraction of data used for testing
Maximum number of epochs
Number of units to consider in dense layer
multiplier to convolutional channels
Number of observations to consider in each iteration
Path where to save model (if NULL won't save it)
Print model specification