scikit-learn/scikit-learn — pull request #684 by clayw (2012-03-06 19:34:49+00:00)
Title: Decision tree graphviz export fix

I ended up with a perfectly valid DT that would fail when I tried to call the export_graphviz function.

There was originally an assertion statement "assert node_id != -1" which was changed to a more readable "if node_id == 1: raise Error" statement. It seems that the minus sign was left out in the update. Oops!