Home
last modified time | relevance | path

Searched refs:label_smoothing (Results 1 – 25 of 30) sorted by relevance

12

/external/tensorflow/tensorflow/python/keras/
Dlosses.py325 label_smoothing=0, argument
333 label_smoothing=label_smoothing)
381 label_smoothing=0, argument
389 label_smoothing=label_smoothing)
839 label_smoothing=0): argument
854 label_smoothing = ops.convert_to_tensor(label_smoothing, dtype=K.floatx())
858 return y_true * (1.0 - label_smoothing) + (label_smoothing / num_classes)
860 y_true = smart_cond.smart_cond(label_smoothing,
874 def binary_crossentropy(y_true, y_pred, from_logits=False, label_smoothing=0): # pylint: disable=m… argument
877 label_smoothing = ops.convert_to_tensor(label_smoothing, dtype=K.floatx())
[all …]
Dmetrics.py2479 label_smoothing=0): argument
2498 label_smoothing=label_smoothing)
2554 label_smoothing=0): argument
2561 label_smoothing=label_smoothing)
Dlosses_test.py736 label_smoothing = 0.1
748 from_logits=True, label_smoothing=label_smoothing)
750 expected_value = (100.0 + 50.0 * label_smoothing) / 3.0
832 label_smoothing = 0.1
846 from_logits=True, label_smoothing=label_smoothing)
848 expected_value = 400.0 * label_smoothing / 3.0
Dmetrics_test.py1367 name='bce', dtype=dtypes.int32, label_smoothing=0.2)
1463 label_smoothing = 0.1
1475 from_logits=True, label_smoothing=label_smoothing)
1478 expected_value = (100.0 + 50.0 * label_smoothing) / 3.0
1487 name='cce', dtype=dtypes.int32, label_smoothing=0.2)
1583 label_smoothing = 0.1
1602 from_logits=True, label_smoothing=label_smoothing)
/external/tensorflow/tensorflow/contrib/gan/python/losses/python/
Dlosses_impl.py180 label_smoothing=0.0, argument
234 weights=real_weights, label_smoothing=label_smoothing, scope=scope,
408 label_smoothing=0.25, argument
448 generated_weights, label_smoothing)) as scope:
453 discriminator_real_outputs, real_weights, label_smoothing, scope,
474 label_smoothing=0.0, argument
511 discriminator_gen_outputs, label_smoothing, weights, weights, scope,
523 label_smoothing=0.25, argument
559 label_smoothing,
570 label_smoothing=0.0, argument
[all …]
/external/tensorflow/tensorflow/contrib/losses/python/losses/
Dloss_ops.py280 label_smoothing=0, argument
316 if label_smoothing > 0:
318 multi_class_labels * (1 - label_smoothing) + 0.5 * label_smoothing)
331 label_smoothing=0, argument
365 if label_smoothing > 0:
368 smooth_positives = 1.0 - label_smoothing
369 smooth_negatives = label_smoothing / num_classes
Dloss_ops_test.py239 label_smoothing = 0.1
241 logits, labels, label_smoothing=label_smoothing)
243 expected_value = 400.0 * label_smoothing / 3.0
603 label_smoothing = 0.1
605 logits, labels, label_smoothing=label_smoothing)
607 expected_value = (100.0 + 50.0 * label_smoothing) / 3.0
612 label_smoothing = 0.1
616 sigmoid_logits, sigmoid_labels, label_smoothing=label_smoothing)
622 softmax_logits, softmax_labels, label_smoothing=label_smoothing)
/external/tensorflow/tensorflow/python/ops/losses/
Dlosses_impl.py656 multi_class_labels, logits, weights=1.0, label_smoothing=0, scope=None, argument
707 if label_smoothing > 0:
708 multi_class_labels = (multi_class_labels * (1 - label_smoothing) +
709 0.5 * label_smoothing)
720 onehot_labels, logits, weights=1.0, label_smoothing=0, scope=None, argument
773 if label_smoothing > 0:
776 smooth_positives = 1.0 - label_smoothing
777 smooth_negatives = label_smoothing / num_classes
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.losses.pbtxt61 …argspec: "args=[\'multi_class_labels\', \'logits\', \'weights\', \'label_smoothing\', \'scope\', \…
65 …argspec: "args=[\'onehot_labels\', \'logits\', \'weights\', \'label_smoothing\', \'scope\', \'loss…
Dtensorflow.keras.losses.-categorical-crossentropy.pbtxt9 …argspec: "args=[\'self\', \'from_logits\', \'label_smoothing\', \'reduction\', \'name\'], varargs=…
Dtensorflow.keras.losses.-binary-crossentropy.pbtxt9 …argspec: "args=[\'self\', \'from_logits\', \'label_smoothing\', \'reduction\', \'name\'], varargs=…
Dtensorflow.keras.losses.pbtxt89 …argspec: "args=[\'y_true\', \'y_pred\', \'from_logits\', \'label_smoothing\'], varargs=None, keywo…
93 …argspec: "args=[\'y_true\', \'y_pred\', \'from_logits\', \'label_smoothing\'], varargs=None, keywo…
Dtensorflow.keras.metrics.pbtxt173 …argspec: "args=[\'y_true\', \'y_pred\', \'from_logits\', \'label_smoothing\'], varargs=None, keywo…
181 …argspec: "args=[\'y_true\', \'y_pred\', \'from_logits\', \'label_smoothing\'], varargs=None, keywo…
/external/tensorflow/tensorflow/python/kernel_tests/
Dlosses_test.py223 label_smoothing = 0.1
225 labels, logits, label_smoothing=label_smoothing)
227 expected_value = 400.0 * label_smoothing / 3.0
627 label_smoothing = 0.1
629 labels, logits, label_smoothing=label_smoothing)
632 expected_value = (100.0 + 50.0 * label_smoothing) / 3.0
638 label_smoothing = 0.1
642 sigmoid_labels, sigmoid_logits, label_smoothing=label_smoothing)
649 softmax_labels, softmax_logits, label_smoothing=label_smoothing)
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.losses.pbtxt93 …argspec: "args=[\'y_true\', \'y_pred\', \'from_logits\', \'label_smoothing\'], varargs=None, keywo…
97 …argspec: "args=[\'y_true\', \'y_pred\', \'from_logits\', \'label_smoothing\'], varargs=None, keywo…
Dtensorflow.keras.losses.pbtxt93 …argspec: "args=[\'y_true\', \'y_pred\', \'from_logits\', \'label_smoothing\'], varargs=None, keywo…
97 …argspec: "args=[\'y_true\', \'y_pred\', \'from_logits\', \'label_smoothing\'], varargs=None, keywo…
Dtensorflow.keras.losses.-categorical-crossentropy.pbtxt9 …argspec: "args=[\'self\', \'from_logits\', \'label_smoothing\', \'reduction\', \'name\'], varargs=…
Dtensorflow.keras.losses.-binary-crossentropy.pbtxt9 …argspec: "args=[\'self\', \'from_logits\', \'label_smoothing\', \'reduction\', \'name\'], varargs=…
Dtensorflow.losses.-binary-crossentropy.pbtxt9 …argspec: "args=[\'self\', \'from_logits\', \'label_smoothing\', \'reduction\', \'name\'], varargs=…
Dtensorflow.losses.-categorical-crossentropy.pbtxt9 …argspec: "args=[\'self\', \'from_logits\', \'label_smoothing\', \'reduction\', \'name\'], varargs=…
Dtensorflow.keras.metrics.pbtxt173 …argspec: "args=[\'y_true\', \'y_pred\', \'from_logits\', \'label_smoothing\'], varargs=None, keywo…
181 …argspec: "args=[\'y_true\', \'y_pred\', \'from_logits\', \'label_smoothing\'], varargs=None, keywo…
Dtensorflow.metrics.pbtxt173 …argspec: "args=[\'y_true\', \'y_pred\', \'from_logits\', \'label_smoothing\'], varargs=None, keywo…
181 …argspec: "args=[\'y_true\', \'y_pred\', \'from_logits\', \'label_smoothing\'], varargs=None, keywo…
Dtensorflow.keras.metrics.-categorical-crossentropy.pbtxt93 …argspec: "args=[\'self\', \'name\', \'dtype\', \'from_logits\', \'label_smoothing\'], varargs=None…
Dtensorflow.metrics.-binary-crossentropy.pbtxt93 …argspec: "args=[\'self\', \'name\', \'dtype\', \'from_logits\', \'label_smoothing\'], varargs=None…
/external/tensorflow/tensorflow/contrib/eager/python/examples/gan/
Dmnist.py168 label_smoothing=0.25)

12