Searched refs:test_metric (Results 1 – 3 of 3) sorted by relevance
110 test_metric = TestMetric()111 aggregate_metric = LastElementMetric.from_metric(test_metric)112 test_metric.collect_metric()114 self.assertEqual(test_metric.values, [1])118 test_metric = TestMetric()119 aggregate_metric = LastElementMetric.from_metric(test_metric)120 test_metric.collect_metric()122 test_metric.value = 2123 test_metric.collect_metric()125 test_metric.value = 3[all …]
1327 _, test_metric = model.test_on_batch(np.ones((2, 3)),1329 self.assertEqual(test_metric, 0)
1072 def test_metric(self, metric_cls, num_tensor_args, shape, init_kwargs=None): member in MetricTest