Add Attribute class
This class will be used in decision trees.
This commit is contained in:
parent
38ce217db4
commit
ad791a299e
7
src/AI/DecisionTrees/Attribute.py
Normal file
7
src/AI/DecisionTrees/Attribute.py
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user