Learning from Demonstration via Probabilistic Diagrammatic Teaching