Contrastive learning for machine learning success