Reset states at start/end of validation and whenever file changes. Can be used for stateful LSTM.
Usage
reset_states_cb(path_file_log, path_file_logVal)
Arguments
- path_file_log
Path to log of training files.
- path_file_logVal
Path to log of validation files.
Value
A keras callback that resets states of LSTM layers.
Examples
if (FALSE) { # reticulate::py_module_available("tensorflow")
rs <- reset_states_cb(path_file_log = tempfile(), path_file_logVal = tempfile())
}