Uses a State object for sampling models. State is a container of values of units for the layers in a model, and stores the values between sampling. Previously, the negative phase visible units were stored, while the values of hidden units were not and were only computed inside of functions.
The PR currently leaves the gradient calculation the same, since I thought it was better to separate out API changes from functional changes.
Uses a
State
object for sampling models.State
is a container of values of units for the layers in a model, and stores the values between sampling. Previously, the negative phase visible units were stored, while the values of hidden units were not and were only computed inside of functions.The PR currently leaves the gradient calculation the same, since I thought it was better to separate out API changes from functional changes.