This commit is contained in:
Steve Nyemba 2022-04-13 11:45:39 -05:00
parent 167e4b873d
commit 289f2e7b89
1 changed files with 3 additions and 3 deletions

View File

@ -51,8 +51,8 @@ class Learner(Process):
self._encoder = None
self._map = None
self._df = _args['data'] if 'data' in _args else None
self.name = self.__class__.__name__+'::'+self.info['from']
self.name = self.name.replace('?','')
self.name = self.__class__.__name__
#
# @TODO: allow for verbose mode so we have a sens of what is going on within the newtork
#
@ -64,7 +64,7 @@ class Learner(Process):
# sel.max_epoc
def log(self,**_args):
logger = transport.factory.instance(**self.store['logger']) if 'logger' in self.store else transport.factory.instance(provider='console',context='write',lock=True)
_args = dict({'ndx':self.ndx,'module':self.name,'info':self.info['context'],**_args})
_args = dict({'ndx':self.ndx,'module':self.name,'table':self.info['from'],'info':self.info['context'],**_args})
logger.write(_args)
self.ndx += 1
if hasattr(logger,'close') :