Working with Directed Acyclic Graphs part4(Machine Learning)