Learning the Architecture of Sum-Product Networks Using Clustering on Variables