I am new to Sum-Product Networks (SPN) and still trying to understand some concepts. I understand that we need to give inputs at the leaf nodes of SPN. But why do we have gaussian distribution and categorical distribution at leaves? How does it help? Please, anyone can explain it.