Time-series attribution maps with regularized contrastive learning