Classification predictions #1563
-
(Full Colab code here.) I'm trying to set up a model for a simple 3-class, 2-dimensional classification problem using a softmax likelihood like so:
and I'm having some trouble visualizing the model's predictions on a grid. When I plot the latent means using
I got the same plot for all three latents, which makes me suspect I'm doing something wrong. When I plot the Any pointer would be appreciated. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You have to set
I think this is just an optimization issue. I raised the learning rate to 0.1 and upped the number of iterations to 1000, and predictions came out much smoother looking. A few other minor issues:
|
Beta Was this translation helpful? Give feedback.
You have to set
batch_shape=torch.Size([num_classes])
on theCholeskyVariationalDistribution
. Otherwise, the GPs for each class are going to have the same output. See the variational multi-output tutorial for more details.I think this is just an optimization issue. I raised the learning rate to 0.1 and upped the number of iterations to 1000, and predictions came out much smoother looking.
A few other minor issues:
Multitas…