From 3f2e5550c757b2f1e65f0eaa227b2371ea664992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Sun, 24 May 2020 19:10:45 +0200 Subject: [PATCH] Make prints done by method gen dt exmpls readable --- src/AI/DecisionTrees/ExamplesManager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/AI/DecisionTrees/ExamplesManager.py b/src/AI/DecisionTrees/ExamplesManager.py index 4bc44c1..824a881 100644 --- a/src/AI/DecisionTrees/ExamplesManager.py +++ b/src/AI/DecisionTrees/ExamplesManager.py @@ -157,6 +157,7 @@ class ExamplesManager: while True: howManyExamplesGenerate = int(input("How many example do you want to generate? : ")) + print() for i in range(howManyExamplesGenerate): @@ -187,7 +188,9 @@ class ExamplesManager: continue # if not a duplicate then ask for classification + print() print("Generated example: \n{}".format(newExample.getDescription())) + print() givenClsIsGood = False while not givenClsIsGood: @@ -204,6 +207,6 @@ class ExamplesManager: newExample.classification = classification self.addExamplesToFile([newExample]) - keepGenerating = input("Type 'E' to stop generating or anything else to continue") + keepGenerating = input("Type 'E' to stop generating or anything else to continue.\n") if keepGenerating == "E": break