callback_csv_logger {keras3}R Documentation

Callback that streams epoch results to a CSV file.

Description

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))

See Also

Other callbacks:
Callback()
callback_backup_and_restore()
callback_early_stopping()
callback_lambda()
callback_learning_rate_scheduler()
callback_model_checkpoint()
callback_reduce_lr_on_plateau()
callback_remote_monitor()
callback_swap_ema_weights()
callback_tensorboard()
callback_terminate_on_nan()


[Package keras3 version 0.2.0 Index]