A variant of the contrastive divergence algorithm which does not reset to the ground truth.
The type of sampler context
The argument to the sampler
The model
The sampler
Put objective value and gradient into the accumulators.
Put objective value and gradient into the accumulators. Either argument can be null if they don't need to be computed.
Accumulator to hold value
Accumulator to hold gradient
The argument to the sampler
The sampler