Add method adding branch to decision tree
This commit is contained in:
parent
fd54303dba
commit
9d1299b162
@ -12,3 +12,7 @@ class DecisionTree(object):
|
||||
self.root = root
|
||||
self.branches = []
|
||||
self.branchesNum = 0
|
||||
|
||||
def addBranch(self, newBranch):
|
||||
self.branches.append(newBranch)
|
||||
self.branchesNum += 1
|
||||
|
Loading…
Reference in New Issue
Block a user