-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace MatrixDirichlet
with TensorDirichlet
#227
Comments
I think it makes sense, also helps to avoid confusion with an actual MatrixDirichlet distribution |
There is still a confusion with the naming conventions. Neither MatrixDirichlet nor TensorDirichlet are good names for the underlying distributions. The distributions we currently have are variety of independent multiplications of Dirichlet distribution. Matrix Dirichlet is independent Dirichlet over columns. The naming stems from ForneyLab that should be changed. I am in favor of only retaining what is called TensorDirichlet. Nevertheless, we need to be aware this is not a good name either as it only models indpendent Dirichlets organized as a tensor. We should discuss a good naming convention. I thought the implementation was going to generalize the Dirichlet distribution to matrices and tensors. Nevertheless, it doesn't do that. We need to implement the actual generalizations to call them TensorDirichlet or MatrixDirichlet. |
@ismailsenoz I agree, only I haven't come up with a better alternative. Maybe something like |
I like the suggestion. Then we would need a type that can handle |
TensorDirichlet
is a strict generalization ofMatrixDirichlet
. Since we optimized it a bit, it is also a bit faster. e.g.:I think we should replace everything before we get caught up in
MatrixDirichlet
even further. This also simplifies the implementation ofTransition
in RMP. What do you think @bvdmitri @Nimrais ?The text was updated successfully, but these errors were encountered: