a b/man/reset_states_cb.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/callbacks.R
3
\name{reset_states_cb}
4
\alias{reset_states_cb}
5
\title{Reset states callback}
6
\usage{
7
reset_states_cb(path_file_log, path_file_logVal)
8
}
9
\arguments{
10
\item{path_file_log}{Path to log of training files.}
11
12
\item{path_file_logVal}{Path to log of validation files.}
13
}
14
\value{
15
A keras callback that resets states of LSTM layers.
16
}
17
\description{
18
Reset states at start/end of validation and whenever file changes. Can be used for stateful LSTM.
19
}
20
\examples{
21
\dontshow{if (reticulate::py_module_available("tensorflow")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
22
rs <- reset_states_cb(path_file_log = tempfile(), path_file_logVal = tempfile())
23
\dontshow{\}) # examplesIf}
24
}