Skip to content

Pass argument to ABCSMC #630

Closed Answered by arrjon
Gabriel-p asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed, you cannot pass these kind of extra arguments to ABCSCM. But would that work for you?

from functools import partial
distance_ = partial(distance, extra_arg=extra_arg)
abc = pyabc.ABCSMC(model, prior, distance_)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Gabriel-p
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants