Learning to Represent and Predict Sets with Deep Neural Networks