From 38ce217db4dde40eb86c350302e8167620c6abda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Thu, 21 May 2020 16:50:07 +0200 Subject: [PATCH] Add AttributeDefinition class This class will be used in decision trees. --- src/AI/DecisionTrees/AttributeDefinition.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/AI/DecisionTrees/AttributeDefinition.py diff --git a/src/AI/DecisionTrees/AttributeDefinition.py b/src/AI/DecisionTrees/AttributeDefinition.py new file mode 100644 index 0000000..c8f18a8 --- /dev/null +++ b/src/AI/DecisionTrees/AttributeDefinition.py @@ -0,0 +1,14 @@ +from typing import List + + +class AttributeDefinition: + def __init__(self, id, name: str, values: List): + """ + + :param id: + :param name: Attribute name + :param values: Possible values + """ + self.id = id + self.name = name + self.values = values