Add method adding branch to decision tree

This commit is contained in:
Michał Czekański 2020-05-21 16:58:28 +02:00
parent fd54303dba
commit 9d1299b162

View File

@ -12,3 +12,7 @@ class DecisionTree(object):
self.root = root self.root = root
self.branches = [] self.branches = []
self.branchesNum = 0 self.branchesNum = 0
def addBranch(self, newBranch):
self.branches.append(newBranch)
self.branchesNum += 1