Skip to contents

Supports all values that can be represented as a string, including 1D iterables such as atomic vectors.

Usage

callback_csv_logger(filename, separator = ",", append = FALSE)

Arguments

filename

Filename of the CSV file, e.g. 'run/log.csv'.

separator

String used to separate elements in the CSV file.

append

Boolean. TRUE: append if file exists (useful for continuing training). FALSE: overwrite existing file.

Value

A Callback instance that can be passed to fit.keras.src.models.model.Model().

Examples

csv_logger <- callback_csv_logger('training.log')
model %>% fit(X_train, Y_train, callbacks = list(csv_logger))