Default indent fix in decision tree print
This commit is contained in:
parent
2fbc877141
commit
0d6b3e4e84
@ -29,7 +29,7 @@ class DecisionTree(object):
|
|||||||
return branch.subtree.giveAnswer(example)
|
return branch.subtree.giveAnswer(example)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def printTree(tree, depth: int, indent: int = 20):
|
def printTree(tree, depth: int, indent: int = 50):
|
||||||
if isinstance(tree.root, AttributeDefinition):
|
if isinstance(tree.root, AttributeDefinition):
|
||||||
print("NODE: {}".format(tree.root.name).rjust(indent * depth))
|
print("NODE: {}".format(tree.root.name).rjust(indent * depth))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user