Trustworthy transfer learning