/third_party/mindspore/mindspore/nn/metrics/ |
D | confusion_matrix.py | 193 metric_name="sensitivity", argument 198 self.confusion_matrix = _ConfusionMatrix(skip_channel=skip_channel, metric_name=metric_name, 202 self.metric_name = validator.check_value_type("metric_name", metric_name, [str]) 270 return _compute_confusion_matrix_metric(self.metric_name, confusion_matrix) 293 def __init__(self, skip_channel=True, metric_name="hit_rate", calculation_method=False, argument 297 self.metric_name = metric_name 327 if isinstance(self.metric_name, str): 328 … confusion_matrix = _compute_confusion_matrix_metric(self.metric_name, confusion_matrix) 332 if not self.metric_name: 336 for metric_name in self.metric_name: [all …]
|
/third_party/mindspore/tests/ut/python/metrics/ |
D | test_confusion_matrix_metric.py | 24 metric = ConfusionMatrixMetric(skip_channel=True, metric_name="tpr", calculation_method=False) 40 metric = ConfusionMatrixMetric(skip_channel=True, metric_name="ppv", calculation_method=True) 50 metric = ConfusionMatrixMetric(skip_channel=True, metric_name="tnr", calculation_method=True) 69 metric = ConfusionMatrixMetric(skip_channel=True, metric_name=1, calculation_method=False) 80 … metric = ConfusionMatrixMetric(skip_channel=True, metric_name="wwwww", calculation_method=False) 90 metric = ConfusionMatrixMetric(skip_channel=True, metric_name="tnr", calculation_method=True)
|
/third_party/grpc/src/cpp/server/load_reporter/ |
D | load_data_store.h | 136 LoadRecordValue(std::string metric_name, uint64_t num_calls, 167 bool InsertCallMetric(const std::string& metric_name, in InsertCallMetric() argument 169 return call_metrics_.insert({metric_name, metric_value}).second; in InsertCallMetric()
|
D | load_reporter.cc | 323 const std::string& metric_name = p.first; in GenerateLoads() local 326 call_metric_data->set_metric_name(metric_name); in GenerateLoads() 482 const std::string& metric_name = tag_values[3]; in ProcessViewDataOtherCallMetrics() local 489 metric_name, static_cast<uint64_t>(num_calls), total_metric_value); in ProcessViewDataOtherCallMetrics()
|
D | load_data_store.cc | 135 LoadRecordValue::LoadRecordValue(std::string metric_name, uint64_t num_calls, in LoadRecordValue() argument 137 call_metrics_.emplace(std::move(metric_name), in LoadRecordValue()
|
/third_party/grpc/src/proto/grpc/lb/v1/ |
D | load_reporter.proto | 140 // Optional metrics reported for the call(s). Requires that metric_name is 168 string metric_name = 1; field
|
/third_party/grpc/test/cpp/end2end/ |
D | server_load_reporting_end2end_test.cc | 167 ASSERT_EQ(load.metric_data().Get(0).metric_name(), kMetricName); in TEST_F()
|
/third_party/grpc/src/proto/grpc/testing/xds/v3/ |
D | load_report.proto | 110 string metric_name = 1; field
|
/third_party/grpc/src/core/ext/filters/client_channel/xds/ |
D | xds_api.cc | 1990 const std::string& metric_name = p.first; in LocalityStatsPopulate() local 1996 load_metric, upb_strview_make(metric_name.data(), metric_name.size())); in LocalityStatsPopulate()
|
/third_party/grpc/src/proto/grpc/testing/xds/ |
D | lrs_for_test.proto | 34 string metric_name = 1; field
|
/third_party/grpc/src/core/ext/xds/ |
D | xds_api.cc | 2360 const std::string& metric_name = p.first; in LocalityStatsPopulate() local 2366 load_metric, StdStringToUpbString(metric_name)); in LocalityStatsPopulate()
|