Temporal Representation Learning