Paper and code for "Semi-supervised Domain Adaptation with Non-Parametric Copulas", NIPS 2012