hopsy.Model#
- class hopsy.Model#
Base model class. While custom models are not required to inherit from this base class, they should still implement these functions so that all proposal mechanisms work. See the methods for more details on how to implement the methods.
Methods
deprecated:: 1.4
compute_log_likelihood_gradient
(self, x)deprecated:: 1.4
compute_negative_log_likelihood
(self, x)deprecated:: 1.4
log_curvature
(self x)For some proposals, the curvature will help converging faster as long as the gradient computation is not too slow.
log_density
(self, x)This method is required for any custom model and should be implemented for any custom models.
log_gradient
(self, x)For some proposals, the gradient will help converging faster as long as the gradient computation is not too slow.