Example #1
0
 def __init__(self, dataset_name, ml_name_run):
     self.dataset_name = dataset_name
     self.ml_name_run = ml_name_run
     log_file = LogFile()
     self.log = log_file.get_log(self.dataset_name+'_data', self.dataset_name+'_data.log', Config.display_console)
     self.log_debug = log_file.get_log(self.dataset_name+'_debug', self.dataset_name+'_debug.log', Config.display_console)
     self.log_error = log_file.get_log(self.dataset_name+'_error', self.dataset_name+'_error.err', Config.display_console)
Example #2
0
 def __init__(self, dataset_name, loop):
     self.dataset_name = dataset_name
     self.loop = loop
     log_file = LogFile()
     self.log = log_file.get_log(self.dataset_name + '_data', self.dataset_name + '_data.log', Config.display_console)
     self.log_debug = log_file.get_log(self.dataset_name + '_debug', self.dataset_name + '_debug.log', Config.display_console)
     self.log_error = log_file.get_log(self.dataset_name + '_error', self.dataset_name + '_error.err', Config.display_console)
     self.log_kernel = log_file.get_log(self.dataset_name + '_kernel', self.dataset_name + '_kernel.kernel', Config.display_console)
Example #3
0
 def __init__(self, dataset_name):
     self.dataset_name = dataset_name
     log_file = LogFile()
     self.log = log_file.get_log(
         self.dataset_name + "_data", self.dataset_name + "_data.log", Config.display_console
     )
     self.log_debug = log_file.get_log(
         self.dataset_name + "_debug", self.dataset_name + "_debug.log", Config.display_console
     )
 def __init__(self, ml_key, dataset_lst):
     self.ml_key = ml_key
     self.dataset_lst = dataset_lst
     log_file = LogFile()
     self.log = log_file.get_log(self.ml_key + '_data', self.ml_key + '_data.log', Config.display_console)
     self.log_debug = log_file.get_log(self.ml_key + '_debug', self.ml_key + '_debug.log', Config.display_console)
 def _add_log_file_for_tag(self, appId, tag):
     if (not appId in self.log_files):
         self.log_files[appId] = {"tags": {}, "days": []}
     self.log_files[appId]["tags"][tag] = LogFile("{}_{}_log.csv".format(
         appId, tag))
 def _add_log_file_for_timestamp(self, appId, timestamp):
     day = parser.get_day_from_timestamp(timestamp)
     if (not appId in self.log_files):
         self.log_files[appId] = {"tags": {}, "days": {}}
     self.log_files[appId]["days"][day] = LogFile("{}_{}_log.csv".format(
         appId, day))
Example #7
0
 def __init__(self):
     log_file = LogFile()
     self.log = log_file.get_log('data', 'data.log', Config.display_console)
     self.log_debug = log_file.get_log('debug', 'debug.log', Config.display_console)