Default indent fix in decision tree print

This commit is contained in:
Michał Czekański 2020-05-24 00:38:12 +02:00
parent 2fbc877141
commit 0d6b3e4e84

View File

@ -29,7 +29,7 @@ class DecisionTree(object):
return branch.subtree.giveAnswer(example)
@staticmethod
def printTree(tree, depth: int, indent: int = 20):
def printTree(tree, depth: int, indent: int = 50):
if isinstance(tree.root, AttributeDefinition):
print("NODE: {}".format(tree.root.name).rjust(indent * depth))
else: