Transforming task representations to allow deep learning models to perform novel tasks