From fbd76f31e76356726e9c2242e007f4f33ef1bbf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Thu, 21 May 2020 16:56:01 +0200 Subject: [PATCH] Add DecisionTree class with just init --- src/AI/DecisionTrees/DecisionTree.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/AI/DecisionTrees/DecisionTree.py diff --git a/src/AI/DecisionTrees/DecisionTree.py b/src/AI/DecisionTrees/DecisionTree.py new file mode 100644 index 0000000..87ed395 --- /dev/null +++ b/src/AI/DecisionTrees/DecisionTree.py @@ -0,0 +1,13 @@ +from typing import List, Any + +from src.AI.DecisionTrees.AttributeDefinition import AttributeDefinition + + +class DecisionTree(object): + root: AttributeDefinition + branches: List[Any] + + def __init__(self, root): + self.root = root + self.branches = [] + self.branchesNum = 0 \ No newline at end of file