| 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

experiment_context.py
1
3
4 '''
5 Copyright (C) e2its - All Rights Reserved
6 * Unauthorized copying of this file, via any medium is strictly prohibited
7 * Proprietary and confidential
8 *
9 * This file is part of gDayF project.
10 *
11 * Written by Jose L. Sanchez <e2its.es@gmail.com>, 2016-2019
12 '''
13
14 from gdayf.conf.loadconfig import LoadConfig
15 from gdayf.conf.loadconfig import LoadLabels
16 from time import time
17
18
19 class Experiment_Context(object):
20 def __init__(self, user_id='PoC_gDayF', workflow_id='default', lang='en'):
21 self.id_user = user_id
22 self.timestamp = str(time())
23 self.id_workflow = workflow_id
24 self.config = LoadConfig(user_id=self.id_user)
25 self.labels = LoadLabels(lang=lang)
26 self.id_analysis = None
27 self.spark_temporal_data_frames = dict()
28
29
32 def set_id_user(self, value):
33 self.id_user = value
34
35
38 def get_id_user(self):
39 return self.id_user
40
41
43 def set_id_workflow(self, value):
44 self.id_workflow = value
45
46
49 def get_id_workflow(self):
50 return self.id_workflow
51
52
54 def set_id_analysis(self, value):
55 self.id_analysis = value
56
57
60 def get_id_analysis(self):
61 return self.id_analysis
gdayf.core.experiment_context.Experiment_Context.set_id_workflow
def set_id_workflow(self, value)
Method used to set global variable id_workflow used to propagate workflow_id to all modules...
Definition: experiment_context.py:43
gdayf.conf.loadconfig.LoadConfig
Class Getting the config file place on default location and load all parameters on an internal variab...
Definition: loadconfig.py:22
gdayf.core.experiment_context.Experiment_Context.set_id_analysis
def set_id_analysis(self, value)
Method used to set global variable id_workflow used to propagate workflow_id to all modules...
Definition: experiment_context.py:54
gdayf.core.experiment_context.Experiment_Context.id_workflow
id_workflow
Definition: experiment_context.py:23
gdayf.core.experiment_context.Experiment_Context.id_user
id_user
Definition: experiment_context.py:21
gdayf.core.experiment_context.Experiment_Context.id_analysis
id_analysis
Definition: experiment_context.py:26
gdayf.conf.loadconfig.LoadLabels
Class Getting the config file place on default location and load all labels named self...
Definition: loadconfig.py:68
gdayf.core.experiment_context.Experiment_Context.get_id_analysis
def get_id_analysis(self)
Method used to get global variable id_workflow used to recover workflow_id in all modules...
Definition: experiment_context.py:60
gdayf.core.experiment_context.Experiment_Context.config
config
Definition: experiment_context.py:24
gdayf.core.experiment_context.Experiment_Context.labels
labels
Definition: experiment_context.py:25
gdayf.core.experiment_context.Experiment_Context.spark_temporal_data_frames
spark_temporal_data_frames
Definition: experiment_context.py:27
gdayf.core.experiment_context.Experiment_Context.set_id_user
def set_id_user(self, value)
Method used to set global variable id_user used to propagate user_id to all modules.
Definition: experiment_context.py:32
gdayf.core.experiment_context.Experiment_Context.get_id_workflow
def get_id_workflow(self)
Method used to get global variable id_workflow used to recover workflow_id in all modules...
Definition: experiment_context.py:49
gdayf.core.experiment_context.Experiment_Context
Definition: experiment_context.py:19
gdayf.core.experiment_context.Experiment_Context.get_id_user
def get_id_user(self)
Method used to get global variable id_user used to recover user_id in all modules.
Definition: experiment_context.py:38
gdayf.core.experiment_context.Experiment_Context.timestamp
timestamp
Definition: experiment_context.py:22
gdayf.conf.loadconfig
Define all objects, functions and structs related to load on system all configuration parameter from ...
Definition: loadconfig.py:1