-
Notifications
You must be signed in to change notification settings - Fork 22
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
CategoricalLikelihood compatibility with LatentGP #404
CategoricalLikelihood compatibility with LatentGP #404
Comments
Hey! Yes the interface is far from ideal right now, you can find a multi class example (using a different inference approach) here: https://juliagaussianprocesses.github.io/AugmentedGPLikelihoods.jl/dev/examples/categorical/ |
Thanks for the quick reply! I did see that example, but I ran into some issues with the If I'm correct, your representation for the mean and variance of the distribution over inducing points is an ArraysOfArrays object (that's why you broadcast the following line in the CAVI algorithm Thanks so much! |
It seems like perhaps the output of this line: https://github.com/JuliaGaussianProcesses/AugmentedGPLikelihoods.jl/blob/41336971ee8882a147e996cf4e791831422da393/examples/categorical/script.jl#L138 |
That's a good point! I will try to fix the script in the repo directly! |
That would be a big help, thank you! |
I would like to model a multi-class dataset using
LatentGP
s and theCategoricalLikelihood
(from GPLikelihoods.jl). TheCategoricalLikelihood
requires multiple latent GPs, and expects their output to be aAbstractVector{<:AbstractVector{<:Real}}
. Instead, the design choice for multi-output GPs is to concatenate the outputs into one long vector, which is not what is necessary for a LatentGP with aCategoricalLikelihood
. Below is an example:Let me know if this is the wrong way of handling categorical likelihoods or if there is a recommendation on how to get this working out of the box. Happy to work on a PR.
The text was updated successfully, but these errors were encountered: