torchdms.loss.sum_diff_penalty

torchdms.loss.sum_diff_penalty(betas)[source]

Computes l1 norm of the difference between aggregated betas at adjacent sites for each latent dimension.