Exemple #1
0
 def available_metrics(self):
     try:
         return [{
             "pk": metric_name,
             "str": metric.title
         } for metric_name, metric in metrics_dict.iteritems()
                 if metric.produce_single_number]
     except Exception, e:
         log.exception(e)
         return []
Exemple #2
0
 def available_metrics(self):
     try:
         return [
             {"pk": metric_name, "str": metric.title}
             for metric_name, metric in metrics_dict.iteritems()
             if metric.produce_single_number
         ]
     except Exception, e:
         log.exception(e)
         return []
Exemple #3
0
 def available_metrics(self):
     try:
         return [
             {"pk": metric_name, "str": metric.title}
             for metric_name, metric in metrics_dict.iteritems()
             if metric.produce_single_number
         ]
     except Exception, e:
         if self.exp_id:
                 exp = Experiment.get_exp_by_id(self.exp_id)
                 exp.log(self.uuid, e, severity="CRITICAL")
         log.exception(e)
         return []