Predicting a single output based on a sequence