-
Notifications
You must be signed in to change notification settings - Fork 270
/
__init__.py
executable file
·41 lines (33 loc) · 1.41 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# import commands
from .scan.Scan import Scan
from .commands.reporting import Reporting
from .commands.predict import Predict
from .commands.deploy import Deploy
from .commands.evaluate import Evaluate
from .commands.restore import Restore
from .commands.autom8 import Autom8
from .commands.params import Params
from .commands.kerasmodel import KerasModel
from . import utils
from . import examples as templates
# the purpose of everything below is to keep the namespace completely clean
del_from_utils = ['best_model', 'connection_check', 'detector',
'exceptions', 'last_neuron', 'load_model', 'validation_split',
'pred_class', 'results', 'string_cols_to_numeric']
for key in del_from_utils:
if key.startswith('__') is False:
delattr(utils, key)
template_sub = [templates.datasets,
templates.models,
templates.params,
templates.pipelines]
keep_from_templates = ['iris', 'cervical_cancer', 'titanic', 'breast_cancer',
'icu_mortality']
for sub in template_sub:
for key in list(sub.__dict__):
if key.startswith('__') is False:
if key not in keep_from_templates:
delattr(sub, key)
del commands, parameters, scan, reducers, model, metrics, key, del_from_utils
del examples, sub, keep_from_templates, template_sub
__version__ = "0.5.0"