16. The method of claim 14 wherein the grouping operation comprises computing a product of density functions corresponding to the encodings.
14. The method of claim 11 wherein the training comprises using the encoder to compute encodings of training data items of a group, and computing a grouping operation on the encodings.