mirror of
https://github.com/clearml/clearml
synced 2025-03-03 18:52:12 +00:00
Change second model warning to info
This commit is contained in:
parent
1a658e9d89
commit
cdbf792582
@ -775,6 +775,21 @@ class Task(_Task):
|
||||
self.data.last_iteration = int(last_iteration)
|
||||
self._edit(last_iteration=self.data.last_iteration)
|
||||
|
||||
def get_last_scalar_metrics(self):
|
||||
"""
|
||||
Extract the last scalar metrics, ordered by title & series in a nested dictionary
|
||||
|
||||
:return: dict. Example: {'title': {'series': {'last': 0.5, 'min': 0.1, 'max': 0.9}}}
|
||||
"""
|
||||
self.reload()
|
||||
metrics = self.data.last_metrics
|
||||
scalar_metrics = dict()
|
||||
for i in metrics.values():
|
||||
for j in i.values():
|
||||
scalar_metrics.setdefault(j['metric'], {}).setdefault(
|
||||
j['variant'], {'last': j['value'], 'min': j['min_value'], 'max': j['max_value']})
|
||||
return scalar_metrics
|
||||
|
||||
@classmethod
|
||||
def set_credentials(cls, host=None, key=None, secret=None):
|
||||
"""
|
||||
@ -866,7 +881,7 @@ class Task(_Task):
|
||||
comment += 'Using model id: {}'.format(model.id)
|
||||
self.set_comment(comment)
|
||||
if self._last_input_model_id and self._last_input_model_id != model.id:
|
||||
self.log.warning('Task connect, second input model is not supported, adding into comment section')
|
||||
self.log.info('Task connect, second input model is not supported, adding into comment section')
|
||||
return
|
||||
self._last_input_model_id = model.id
|
||||
model.connect(self)
|
||||
|
Loading…
Reference in New Issue
Block a user