Learning to represent and predict sets with deep neural networks