this is an implementation of the Talmud algorithm for transfer learning