/external/tensorflow/tensorflow/contrib/metrics/python/ops/ |
D | metric_ops_test.py | 176 _, update_op = metrics.streaming_mean( 178 self.assertListEqual(ops.get_collection(my_collection_name), [update_op]) 190 mean, update_op = metrics.streaming_mean(values) 194 sess.run(update_op) 207 mean, update_op = metrics.streaming_mean(values) 211 self.assertAlmostEqual(0.5, sess.run(update_op), 5) 212 self.assertAlmostEqual(1.475, sess.run(update_op), 5) 213 self.assertAlmostEqual(12.4 / 6.0, sess.run(update_op), 5) 214 self.assertAlmostEqual(1.65, sess.run(update_op), 5) 238 mean, update_op = metrics.streaming_mean(values, weights) [all …]
|
D | metric_ops.py | 584 update_op = compute_fpr(false_positives_update_op, true_negatives_update_op, 591 ops.add_to_collections(updates_collections, update_op) 593 return fpr, update_op 672 update_op = compute_fnr(false_negatives_update_op, true_positives_update_op, 679 ops.add_to_collections(updates_collections, update_op) 681 return fnr, update_op 962 update_op = control_flow_ops.group(*update_ops.values()) 968 ops.add_to_collections(updates_collections, update_op) 970 return points, update_op 1221 update_op = control_flow_ops.group(update_labels, update_preds, [all …]
|
D | histogram_ops.py | 89 hist_true_acc, hist_false_acc, update_op = _auc_hist_accumulate(hist_true, 94 return auc, update_op 170 update_op = control_flow_ops.group( 175 return hist_true_acc, hist_false_acc, update_op
|
D | metric_ops_large_test.py | 44 result, update_op = metric_ops.precision_recall_at_equal_thresholds( 53 sess.run(update_op)
|
/external/tensorflow/tensorflow/contrib/opt/python/training/ |
D | variable_clipping_optimizer_test.py | 78 update_op = clip_opt.apply_gradients( 81 return var0, var1, update_op 83 def _assertDenseCorrect(self, var0, var1, update_op): argument 89 update_op.run() 118 update_op = clip_opt.apply_gradients( 121 return var0, var1, update_op 123 def _assertSparseCorrect(self, var0, var1, update_op): argument 131 update_op.run() 162 var0, var1, update_op = self._setupDense(False, dtype) 163 self._assertDenseCorrect(var0, var1, update_op) [all …]
|
D | variable_clipping_optimizer.py | 94 update_op = self._opt.apply_gradients( 97 with ops.control_dependencies([update_op]): 108 return control_flow_ops.group(*([update_op] + clip_update_ops), name=name)
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | metrics_test.py | 194 _, update_op = metrics.mean( 196 self.assertListEqual(ops.get_collection(my_collection_name), [update_op]) 209 mean, update_op = metrics.mean(values) 213 self.evaluate(update_op) 227 mean, update_op = metrics.mean(values) 231 self.assertAlmostEqual(0.5, self.evaluate(update_op), 5) 232 self.assertAlmostEqual(1.475, self.evaluate(update_op), 5) 233 self.assertAlmostEqual(12.4 / 6.0, self.evaluate(update_op), 5) 234 self.assertAlmostEqual(1.65, self.evaluate(update_op), 5) 266 mean, update_op = mean_result [all …]
|
/external/tensorflow/tensorflow/contrib/tensor_forest/client/ |
D | eval_metrics_test.py | 34 in_top_2_op, update_op = top_2_fn(probabilities, targets) 40 update_op.eval() 51 in_top_3_op, update_op = top_3_fn(probabilities, targets) 57 update_op.eval() 63 accuracy_op, update_op = eval_metrics._accuracy(predictions, targets) 68 update_op.eval() 76 r2_op, update_op = eval_metrics._r2(scores, targets) 82 update_op.eval()
|
/external/tensorflow/tensorflow/python/ops/ |
D | metrics_impl.py | 276 update_op = state_ops.assign_add(total_cm, current_cm) 277 return total_cm, update_op 387 update_op = math_ops.div_no_nan( 391 ops.add_to_collections(updates_collections, update_op) 393 return mean_t, update_op 825 update_op = compute_auc(update_ops['tp'], update_ops['fn'], 829 ops.add_to_collections(updates_collections, update_op) 831 return auc_value, update_op 955 mean_distance, update_op = mean(radial_diffs, weights, None, None, name or 958 update_op = math_ops.subtract(1.0, update_op) [all …]
|
/external/tensorflow/tensorflow/python/keras/ |
D | metrics_confusion_matrix_test.py | 61 update_op = fp_obj.update_state(y_true, y_pred) 62 self.evaluate(update_op) 86 update_op = fp_obj.update_state(y_true, y_pred) 87 self.evaluate(update_op) 141 update_op = fn_obj.update_state(y_true, y_pred) 142 self.evaluate(update_op) 166 update_op = fn_obj.update_state(y_true, y_pred) 167 self.evaluate(update_op) 209 update_op = tn_obj.update_state(y_true, y_pred) 210 self.evaluate(update_op) [all …]
|
D | metrics_test.py | 66 update_op = m.update_state(ops.convert_n_to_tensor([1, 5])) 67 self.evaluate(update_op) 186 update_op = m.update_state(ops.convert_n_to_tensor([1, 5])) 187 self.evaluate(update_op) 312 update_op = acc_obj.update_state([[1], [2], [3], [4]], [[1], [2], [3], [4]]) 313 self.evaluate(update_op) 340 update_op = acc_obj.update_state([[1], [0]], [[1], [0]]) 341 self.evaluate(update_op) 346 update_op = acc_obj.update_state([[1], [1]], [[[1]], [[0]]]) 347 self.evaluate(update_op) [all …]
|
/external/tensorflow/tensorflow/python/training/ |
D | optimizer.py | 99 def update_op(self, optimizer, g): member in _OptimizableVariable 116 def update_op(self, optimizer, g): member in _RefVariableProcessor 118 update_op = optimizer._apply_dense(g, self._v) # pylint: disable=protected-access 120 with ops.control_dependencies([update_op]): 123 return update_op 143 def update_op(self, optimizer, g): member in _DenseReadResourceVariableProcessor 145 update_op = optimizer._resource_apply_dense(g, self._v.op.inputs[0]) 147 with ops.control_dependencies([update_op]): 150 return update_op 162 def update_op(self, optimizer, g): member in _DenseResourceVariableProcessor [all …]
|
D | evaluation_test.py | 121 update_op = accuracy.update_state(labels, predictions) 127 eval_ops=update_op, 128 final_ops={'accuracy': (accuracy.result(), update_op)}, 154 update_op = accuracy.update_state(labels, predictions) 160 eval_ops=update_op, 162 'accuracy': (accuracy.result(), update_op),
|
/external/tensorflow/tensorflow/contrib/boosted_trees/estimator_batch/ |
D | model.py | 137 update_op = gbdt_model.train(loss, predictions_dict, labels) 139 [update_op]), (ops.colocate_with(global_step)): 140 update_op = state_ops.assign_add(global_step, 1).op 141 return update_op 355 update_op = gbdt_model_main.train(loss, predictions_dict, labels) 357 [update_op]), (ops.colocate_with(global_step)): 358 update_op = state_ops.assign_add(global_step, 1).op 359 return update_op
|
/external/tensorflow/tensorflow/contrib/layers/python/layers/ |
D | optimizers_test.py | 316 update_op = state_ops.assign(update_var, 20) 322 update_ops=[update_op]) 341 update_op = state_ops.assign(update_var, 20) 350 update_ops=[update_op]) 362 update_op = state_ops.assign(update_var, 20) 368 update_ops=[update_op]) 385 update_op = state_ops.assign(update_var, 20) 391 update_ops=[update_op]) 408 update_op = state_ops.assign(update_var, 20) 414 update_ops=[update_op], [all …]
|
D | target_column_test.py | 92 accuracy_op, update_op = eval_dict["accuracy/threshold_0.500000_mean"] 95 sess.run(update_op) 134 loss_op, update_op = eval_dict["loss"] 137 sess.run(update_op)
|
/external/tensorflow/tensorflow/contrib/optimizer_v2/ |
D | optimizer_v2.py | 55 def update_op(self, optimizer, g, *args): member in _OptimizableVariable 69 def update_op(self, optimizer, g, *args): member in _RefVariableProcessor 71 update_op = optimizer._apply_dense(g, self._v, *args) # pylint: disable=protected-access 73 with ops.control_dependencies([update_op]): 76 return update_op 96 def update_op(self, optimizer, g, *args): member in _DenseReadResourceVariableProcessor 98 update_op = optimizer._resource_apply_dense(g, self._v.op.inputs[0], *args) 100 with ops.control_dependencies([update_op]): 103 return update_op 115 def update_op(self, optimizer, g, *args): member in _DenseResourceVariableProcessor [all …]
|
/external/tensorflow/tensorflow/contrib/slim/python/slim/ |
D | evaluation_test.py | 91 value_op, update_op = metrics.accuracy( 128 eval_op=update_op, 201 value_op, update_op = metrics.accuracy( 220 '', chkpt_dir, logdir, eval_op=update_op, final_op=value_op, 263 value_op, update_op = metrics.accuracy( 268 '', checkpoint_path, log_dir, eval_op=update_op, final_op=value_op) 279 value_op, update_op = metrics.accuracy( 287 '', checkpoint_path, log_dir, eval_op=update_op, final_op=value_op,
|
/external/tensorflow/tensorflow/contrib/mixed_precision/python/ |
D | loss_scale_manager.py | 170 update_op = state_ops.assign(self._loss_scale, new_loss_scale) 172 return control_flow_ops.group(update_op, self._reset_stats()) 183 update_op = state_ops.assign( 187 return control_flow_ops.group(update_op, self._reset_stats())
|
D | loss_scale_manager_test.py | 47 update_op = update_fn() 52 self.evaluate(update_op) 78 update_op = update_fn() 83 self.evaluate(update_op)
|
/external/tensorflow/tensorflow/contrib/metrics/ |
D | README.md | 10 value, update_op = metrics.streaming_mean_squared_error( 29 value, update_op = some_metric(predictions, labels) 32 update_op.run()
|
/external/tensorflow/tensorflow/contrib/metrics/python/kernel_tests/ |
D | histogram_ops_test.py | 65 auc, update_op = histogram_ops.auc_using_histogram(labels, scores, 68 update_op.run() 161 auc, update_op = histogram_ops.auc_using_histogram( 168 update_op.run(feed_dict={labels: labels_a, scores: scores_a})
|
/external/tensorflow/tensorflow/contrib/metrics/python/metrics/ |
D | classification.py | 180 update_op = compute_best_f1_score(tp=update_ops['tp'], fp=update_ops['fp'], 183 ops.add_to_collections(updates_collections, update_op) 185 return best_f1, update_op
|
/external/tensorflow/tensorflow/python/keras/utils/ |
D | metrics_utils.py | 71 update_op = update_state_fn(*args, **kwargs) 72 if update_op is not None: # update_op will be None in eager execution. 73 metric_obj.add_update(update_op, inputs=True) 74 return update_op
|
/external/tensorflow/tensorflow/contrib/training/python/training/ |
D | evaluation_test.py | 199 accuracy, update_op = metrics.accuracy( 206 eval_ops=update_op, 315 accuracy, update_op = metrics.accuracy( 320 eval_ops=update_op, 370 accuracy, update_op = metrics.accuracy( 380 eval_ops=update_op,
|