Home
last modified time | relevance | path

Searched refs:CosineSimilarity (Results 1 – 3 of 3) sorted by relevance

/third_party/mindspore/tests/ut/python/metrics/
Dtest_cosine_similarity.py19 from mindspore.nn.metrics import CosineSimilarity
25 metric = CosineSimilarity()
36 metric = CosineSimilarity(similarity='cosine', reduction='none', zero_diagonal=False)
61 CosineSimilarity(similarity="4")
67 CosineSimilarity(similarity=4)
73 CosineSimilarity(reduction=2)
79 CosineSimilarity(reduction="1")
86 CosineSimilarity(zero_diagonal=3)
91 metric = CosineSimilarity()
/third_party/mindspore/mindspore/nn/metrics/
D__init__.py36 from .cosine_similarity import CosineSimilarity
79 'cosine_similarity': CosineSimilarity,
Dcosine_similarity.py21 class CosineSimilarity(Metric): class