From ad791a299eb625ea5ba8d2eb135dc8fa45188634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeka=C5=84ski?= Date: Thu, 21 May 2020 16:50:46 +0200 Subject: [PATCH] Add Attribute class This class will be used in decision trees. --- src/AI/DecisionTrees/Attribute.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/AI/DecisionTrees/Attribute.py diff --git a/src/AI/DecisionTrees/Attribute.py b/src/AI/DecisionTrees/Attribute.py new file mode 100644 index 0000000..25e43c0 --- /dev/null +++ b/src/AI/DecisionTrees/Attribute.py @@ -0,0 +1,7 @@ +from src.AI.DecisionTrees.AttributeDefinition import AttributeDefinition + + +class Attribute: + def __init__(self, attributeDefinition: AttributeDefinition, value): + self.attributeDefinition = attributeDefinition + self.value = value