Safe Semi-Supervised Learning of Sum-Product Networks