nltk.classify.DecisionTreeClassifier.pseudocode

DecisionTreeClassifier.pseudocode(prefix=u'', depth=4)[source]

Return a string representation of this decision tree that expresses the decisions it makes as a nested set of pseudocode if statements.