Spiking neurons can discover predictive features by aggregate-label learning