1 #ifndef STAN_SERVICES_IO_WRITE_ERROR_MSG_HPP 2 #define STAN_SERVICES_IO_WRITE_ERROR_MSG_HPP 19 const std::exception& e) {
20 writer(
"Informational Message: The current Metropolis" 21 " proposal is about to be rejected because of" 22 " the following issue:");
24 writer(
"If this warning occurs sporadically, such as" 25 " for highly constrained variable types like" 26 " covariance matrices, then the sampler is fine,");
27 writer(
"but if this warning occurs often then your model" 28 " may be either severely ill-conditioned or" void write_error_msg(interface_callbacks::writer::base_writer &writer, const std::exception &e)
Writes a Metropolis rejection message.
Probability, optimization and sampling library.
base_writer is an abstract base class defining the interface for Stan writer callbacks.