Change type of branch field in DecisionTree class

Type was Any, now it is DecisionTreeBranch.
This commit is contained in:
Michał Czekański 2020-05-21 16:57:33 +02:00
parent a3d47b4320
commit fd54303dba

View File

@ -1,11 +1,12 @@
from typing import List, Any from typing import List, Any
from src.AI.DecisionTrees.AttributeDefinition import AttributeDefinition from src.AI.DecisionTrees.AttributeDefinition import AttributeDefinition
from src.AI.DecisionTrees.DecisionTreeBranch import DecisionTreeBranch
class DecisionTree(object): class DecisionTree(object):
root: AttributeDefinition root: AttributeDefinition
branches: List[Any] branches: List[DecisionTreeBranch]
def __init__(self, root): def __init__(self, root):
self.root = root self.root = root