One-Shot Learning on Attributed Sequences