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