【发布时间】:2016-05-10 02:57:37
【问题描述】:
【问题讨论】:
标签: machine-learning artificial-intelligence supervised-learning unsupervised-learning
【问题讨论】:
标签: machine-learning artificial-intelligence supervised-learning unsupervised-learning
您可以创建一个元类,它使用类的属性作为其值,并以此为基础进行分类。
例如,使用你的两个类:
MetaClass
Name | Attributes
-------------------------------------
class 1 | temperature, humidite, vent
class 2 | nom, prenom, age
或者其他方式:
MetaClass
Name | Temperature | Humidite | Vent | Nom | Prenom | Age
------------------------------------------------------------------
class 1 | True | True | True | False | False | False
class 2 | False | False | False | True | True | True
制作这个元类的细节当然取决于你的实现。
【讨论】: