Experiments and research of Sum Product Networks (SPFlow and RAT-SPN) and Restricted Boltzmann Machines