tf.keras.losses.cosine_similarity

View source

Computes the cosine similarity between labels and predictions.

Aliases:

  • tf.compat.v1.keras.losses.cosine
  • tf.compat.v1.keras.losses.cosine_proximity
  • tf.compat.v1.keras.losses.cosine_similarity
  • tf.compat.v1.keras.metrics.cosine
  • tf.compat.v1.keras.metrics.cosine_proximity
  • tf.compat.v2.keras.losses.cosine_similarity
  • tf.compat.v2.losses.cosine_similarity
  • tf.losses.cosine_similarity
tf.keras.losses.cosine_similarity(
    y_true,
    y_pred,
    axis=-1
)

results matching ""

    No results matching ""