Added WeightedCategorical-Prior#893
Conversation
|
Hi @JasperMartins, thank for implementing this and apologies for the delay in looking over it. The changes look good to me but following a recent change to the |
aed4c4d to
842f3db
Compare
mj-will
left a comment
There was a problem hiding this comment.
LGTM, just one question from my side.
ColmTalbot
left a comment
There was a problem hiding this comment.
I agree, this is generally in good shape, just a few small comments from me.
842f3db to
e36ee8b
Compare
|
I was testing this out today (it happened to be relevant to something I'm working on) and generally it looks good. I noticed that the new priors (and also the categorical prior currently) doesn't store some of the input arguments, this means that the tl;dr: the ....
self.ncategories = ncategories
.... |
|
Hi @JasperMartins just a gentle ping to see if you still have bandwidth to work on this change? |
…ed-categorical-prior
|
Hi @ColmTalbot, Sorry for the delay, I had been on vacation. In principle, the tests in the file |
ColmTalbot
left a comment
There was a problem hiding this comment.
Thanks for making these changes! No worries about the delay. I'm happy with the small duplication in the tests.
mj-will
left a comment
There was a problem hiding this comment.
LGTM, thanks for your work on this!
* Added WeightedCategorical-Prior * Implemented suggestions * Added WeightedDiscreteValues-priors to the general prior tests * Fixed init-from-repr, docstring and cdf-function, simplified code * Docstring fix
* Added WeightedCategorical-Prior * Implemented suggestions * Added WeightedDiscreteValues-priors to the general prior tests * Fixed init-from-repr, docstring and cdf-function, simplified code * Docstring fix
* Added WeightedCategorical-Prior * Implemented suggestions * Added WeightedDiscreteValues-priors to the general prior tests * Fixed init-from-repr, docstring and cdf-function, simplified code * Docstring fix
This pull request adds a
WeightedCategorical-prior that subsumes the existingCategorical-Prior. Functionally, the only difference between the two is thatWeightedCategoricalsupports the setting of relative weights for all categories.