Skip to content

results.samples is an empty dictionary? #111

Answered by Joshuaalbert
leviyevalex asked this question in Q&A
Discussion options

You must be logged in to vote

Should be

def prior_model():
    x = yield Prior(tfpd.Uniform(low=model.lower_bound, high=model.upper_bound), name='x')
    return x

name is an argument for Prior. Only named priors will be in the resulting samples dict. However result.U_samples contains all the information to reconstruct any of them.

Let me know if that works.

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Joshuaalbert
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Joshuaalbert
Comment options

Comment options

You must be logged in to vote
1 reply
@Joshuaalbert
Comment options

Comment options

You must be logged in to vote
2 replies
@leviyevalex
Comment options

@Joshuaalbert
Comment options

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