CSVLogger: CSVLogger

Description Usage Arguments Value Examples

View source: R/callbacks.R

Description

Basic class handling tweaks of the training loop by changing a 'Learner' in various events

Usage

1
CSVLogger(fname = "history.csv", append = FALSE)

Arguments

fname

file name

append

append or not

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
## Not run: 

URLs_MNIST_SAMPLE()
# transformations
tfms = aug_transforms(do_flip = FALSE)
path = 'mnist_sample'
bs = 20

#load into memory
data = ImageDataLoaders_from_folder(path, batch_tfms = tfms, size = 26, bs = bs)


learn = cnn_learner(data, resnet18(), metrics = accuracy, path = getwd())

learn %>% fit_one_cycle(2, cbs = CSVLogger())


## End(Not run)

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