Before revision:  Impact of applying transfer learning strategies with models pre-trained on general-purpose or digital pathology datasets is also discussed .
After revision:  Impact of applying transfer learning strategies with models pre-trained on general-purpose datasets or off-task digital pathology collections. Finally, we propose a solution that automates the creation of leakage-free deep learning pipelines for digital pathology based on histolab, a novel Python package for histology data preprocessing. We validate the solution on two public datasets (TCGA and GTEx) .