You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Distributions
using DistributionsAD
using Random
test_mm = MixtureModel([TuringDenseMvNormal(randn(10), collect(I(10))) for comp in 1:10])
rand(test_mm)
This type of code comes up as I construct a mixture distribution inside of the function I take the gradient of, so the construction of the mixture must explicitly be these distributions (otherwise one gets covert errors).
I have no idea why this behaviour happens, but it occurs even when only 1 component is in the mixture.
For now I can get around it by sampling the vector of distributions then sampling the result, but this is not ideal.
The text was updated successfully, but these errors were encountered:
MWE:
This type of code comes up as I construct a mixture distribution inside of the function I take the gradient of, so the construction of the mixture must explicitly be these distributions (otherwise one gets covert errors).
I have no idea why this behaviour happens, but it occurs even when only 1 component is in the mixture.
For now I can get around it by sampling the vector of distributions then sampling the result, but this is not ideal.
The text was updated successfully, but these errors were encountered: