Designing Learning Algorithms over the Sequence Form of an