NIPS 2014 submission (based on UAI2014)