Home
last modified time | relevance | path

Searched refs:metric_fn (Results 1 – 13 of 13) sorted by relevance

/external/tensorflow/tensorflow/contrib/learn/python/learn/
Dmetric_spec_test.py61 metric_fn=fn, prediction_key="p1", label_key="l1", weight_key="f2")
70 spec = MetricSpec(metric_fn=_fn)
84 spec = MetricSpec(metric_fn=_fn)
97 spec = MetricSpec(metric_fn=_fn)
111 spec = MetricSpec(metric_fn=_fn)
125 spec = MetricSpec(metric_fn=_fn)
140 spec = MetricSpec(metric_fn=_fn)
154 spec = MetricSpec(metric_fn=_fn)
168 spec = MetricSpec(metric_fn=_fn)
182 spec = MetricSpec(metric_fn=_fn)
[all …]
Dmetric_spec.py113 metric_fn, metric_fn_name, is_labels_required, is_weights_required):
146 args = _args(metric_fn)
170 return metric_fn(**kwargs)
184 return metric_fn(labels, predictions)
185 return metric_fn(labels, predictions, **{weights_arg: weights})
198 return metric_fn(predictions, **kwargs)
213 return metric_fn(**kwargs)
223 return metric_fn(predictions)
225 return metric_fn(predictions, **{weights_arg: weights})
299 metric_fn, argument
[all …]
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_utils.py580 metric_fn = get_metric_function(
584 if not isinstance(metric_fn, metrics_module.Metric):
585 metric_fn = metrics_module.MeanMetricWrapper(
586 metric_fn, name=metric_name)
587 metrics_dict[metric_name] = metric_fn
763 metric_fn = metrics_module.get(metric)
765 if hasattr(metric_fn, 'name'):
766 suffix = metric_fn.name
768 suffix = metric_fn.__name__
815 def call_metric_function(metric_fn, y_true, y_pred, weights=None, mask=None): argument
[all …]
Dtraining.py1906 for metric_name, metric_fn in metrics_dict.items():
1910 metric_fn._name = metric_name # pylint: disable=protected-access
1911 updated_metrics_dict[metric_name] = metric_fn
1914 self._compile_metric_functions.append(metric_fn)
1955 def _call_metric_fn(self, metric_fn, y_true, y_pred, weights, mask=None): argument
1960 metric_fn,
1998 for metric_name, metric_fn in metrics_dict.items():
2000 metric_result = self._call_metric_fn(metric_fn, y_true, y_pred, weights,
/external/tensorflow/tensorflow/contrib/gan/python/estimator/python/
Dtpu_gan_estimator_impl.py320 def metric_fn( function
346 def metric_fn(generator_loss, discriminator_loss): function
361 eval_metrics=(metric_fn, tensors))
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
Ddebug_test.py493 metric_fn=metric_ops.streaming_accuracy,
497 metric_fn=metric_ops.streaming_precision,
501 metric_fn=_my_metric_op, prediction_key='probabilities')
522 metric_fn=metric_ops.streaming_auc,
794 metric_fn=metric_ops.streaming_mean_squared_error,
797 MetricSpec(metric_fn=_my_metric_op, prediction_key='scores')
817 metric_fn=metric_ops.streaming_auc,
Ddnn_test.py836 metric_fn=metric_ops.streaming_accuracy,
840 metric_fn=metric_ops.streaming_precision,
844 metric_fn=_my_metric_op, prediction_key='probabilities')
865 metric_fn=metric_ops.streaming_auc,
1407 metric_fn=metric_ops.streaming_mean_squared_error,
1411 metric_fn=_my_metric_op, prediction_key='scores')
1431 metric_fn=metric_ops.streaming_auc,
Ddnn_linear_combined_test.py827 metric_fn=metric_ops.streaming_accuracy,
831 metric_fn=metric_ops.streaming_precision,
835 metric_fn=_my_metric_op, prediction_key='probabilities')
874 metric_fn=metric_ops.streaming_auc,
1509 metric_fn=metric_ops.streaming_mean_squared_error,
1513 metric_fn=_my_metric_op, prediction_key='scores')
1533 metric_fn=metric_ops.streaming_auc,
Dlinear_test.py392 metric_fn=metric_ops.streaming_accuracy,
396 metric_fn=metric_ops.streaming_precision,
400 metric_fn=_my_metric_op, prediction_key='probabilities')
421 metric_fn=metric_ops.streaming_auc,
1345 metric_fn=metric_ops.streaming_mean_squared_error,
1349 metric_fn=_my_metric_op, prediction_key='scores')
1369 metric_fn=metric_ops.streaming_auc,
Destimator_input_test.py305 metric_fn=metric_ops.streaming_accuracy,
/external/tensorflow/tensorflow/contrib/distribute/python/
Dmetrics_v1_test.py96 def _test_metric(self, distribution, dataset_fn, metric_fn, expected_fn): argument
102 metric_fn, args=(inputs,))
117 metric_fn, args=(iterator.get_next(),))
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.estimator.pbtxt189 argspec: "args=[\'estimator\', \'metric_fn\'], varargs=None, keywords=None, defaults=None"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.estimator.pbtxt193 argspec: "args=[\'estimator\', \'metric_fn\'], varargs=None, keywords=None, defaults=None"