Deep learning jet substructure from two-particle correlations