Transferable Representation Learning Algorithm