View source on GitHub |
Callback that streams epoch results to a CSV file.
Inherits From: Callback
tf.keras.callbacks.CSVLogger( filename, separator=',', append=False )
Supports all values that can be represented as a string, including 1D iterables such as np.ndarray
.
csv_logger = CSVLogger('training.log') model.fit(X_train, Y_train, callbacks=[csv_logger])
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. |
set_model
set_model( model )
set_params
set_params( params )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/python/tf/keras/callbacks/CSVLogger