Create a `Learner` with a text classifier from `dls` and `arch`.
text_classifier_learner(
dls,
arch,
seq_len = 72,
config = NULL,
backwards = FALSE,
pretrained = TRUE,
drop_mult = 0.5,
n_out = NULL,
lin_ftrs = NULL,
ps = NULL,
max_len = 1440,
y_range = NULL,
loss_func = NULL,
opt_func = Adam(),
lr = 0.001,
splitter = trainable_params,
cbs = NULL,
metrics = NULL,
path = NULL,
model_dir = "models",
wd = NULL,
wd_bn_bias = FALSE,
train_bn = TRUE,
moms = list(0.95, 0.85, 0.95)
)
dls
arch
seq_len
config
backwards
pretrained
drop_mult
n_out
lin_ftrs
ps
max_len
y_range
loss_func
opt_func
lr
splitter
cbs
metrics
path
model_dir
wd
wd_bn_bias
train_bn
moms
None