title: The termination criteria when building decision tree
body: <p>I am writing my own code for a decision tree. I need to decide on when to terminate the tree building process. I could think of limiting the height of the tree, but this seems trivial. Could anyone give me a better idea on how to implement my termination function.</p>
  
  <p>Here in my tree building algorithm.</p>