From 0d6b3e4e847e5206d5a8ec5c60476e54d4530674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Sun, 24 May 2020 00:38:12 +0200 Subject: [PATCH] Default indent fix in decision tree print --- src/AI/DecisionTrees/DecisionTree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AI/DecisionTrees/DecisionTree.py b/src/AI/DecisionTrees/DecisionTree.py index 0cf24b0..9761b84 100644 --- a/src/AI/DecisionTrees/DecisionTree.py +++ b/src/AI/DecisionTrees/DecisionTree.py @@ -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: