get_text_classifier: Get_text_classifier

Description Usage Arguments Value

View source: R/text_models.R

Description

Create a text classifier from 'arch' and its 'config', maybe 'pretrained'

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
get_text_classifier(
  arch,
  vocab_sz,
  n_class,
  seq_len = 72,
  config = NULL,
  drop_mult = 1,
  lin_ftrs = NULL,
  ps = NULL,
  pad_idx = 1,
  max_len = 1440,
  y_range = NULL
)

Arguments

arch

arch

vocab_sz

vocab_sz

n_class

n_class

seq_len

seq_len

config

config

drop_mult

drop_mult

lin_ftrs

lin_ftrs

ps

ps

pad_idx

pad_idx

max_len

max_len

y_range

y_range

Value

None


fastai documentation built on Oct. 25, 2021, 5:08 p.m.