Skip to content

Passing state + kwargs to callback #55

@theogf

Description

@theogf

Is there any reason for the callback function to not pass the state as well the additional kwargs... passed to sample?

The motivation for state is obvious (I suppose) and for kwargs... it would allow to pass storage/testing variables more easily.
For example :
mycallback(rng, model, sampler, sample; X_test) = my_test(sample, X_test)

Happy to make a PR if this would be an OK thing to add.

EDIT: Note that this would be breaking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions