| DayF core 1.2.1.2 DayF (Decision at your Fingertips) is an AutoML freeware development framework that let developers works with Machine Learning models without any idea of AI, simply taking a csv dataset and the objective column

atypesmetadata.py
1
4
5 '''
6 Copyright (C) e2its - All Rights Reserved
7 * Unauthorized copying of this file, via any medium is strictly prohibited
8 * Proprietary and confidential
9 *
10 * This file is part of gDayF project.
11 *
12 * Written by Jose L. Sanchez <e2its.es@gmail.com>, 2016-2019
13 '''
14
15 from collections import OrderedDict
16
17
19 class ATypesMetadata (list):
20
21 @classmethod
22
25 def get_artypes(cls):
26 return ['binomial', 'multinomial', 'regression', 'topology', 'anomalies', 'clustering']
27
28
31 def __init__(self, **kwargs):
32 list().__init__(self)
33 for pname, pvalue in kwargs.items():
34 if pname in ATypesMetadata().get_artypes():
35 artype = OrderedDict()
36 artype['type'] = str(pname)
37 artype['active'] = pvalue
38 self.append(artype)
39
40
41 if __name__ == "__main__":
42 m = ATypesMetadata(binomial=True, topology=True )
43 print(m)
gdayf.models.atypesmetadata.ATypesMetadata
Generate OrderedDict() from analysis types accepted returning the structure to be added on ModelMetad...
Definition: atypesmetadata.py:19
gdayf.models.atypesmetadata.ATypesMetadata.get_artypes
def get_artypes(cls)
Classmethod Define analysis types allowed.
Definition: atypesmetadata.py:25
gdayf.models.atypesmetadata.ATypesMetadata.__init__
def __init__(self, kwargs)
Constructor.
Definition: atypesmetadata.py:31