Skip to content

Feature request: Automatically handle errors by rejecting proposal #1891

Open
@EvoArt

Description

@EvoArt

It would be useful to have the option to tell tell Turing that if it encounters any errors encountered whatsoever during sampling, to just reject the proposal.

This would make for simpler/more elegant code on the user end. Error handling can be optimised by Turing devs, for everyone's benefit, and relatedly will reduce frustration for new users encountering errors in perfectly well formulated models.

I believe Stan does something like this by default i.e. I have never had to (and wouldn't know how to) handle errors during sampling in Stan. It just throughs a warning, rejects the proposal and keeps going.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions