## Description ## For a target label 1 or -1, vectors target and prediction, the function computes the cosine distance between the vectors. This can be interpreted as how similar/dissimilar two input vectors are. Can be used as a loss function while training models.
## Checklist ## ### Essentials ### Please feel free to remove inapplicable items for your PR. - [x] The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant [JIRA issue](https://issues.apache.org/jira/projects/MXNET/issues) created (except PRs with tiny changes) - [x] Changes are complete (i.e. I finished coding on this PR) - [x] All changes have test coverage: - Unit tests are added for small changes to verify correctness (e.g. adding a new operator) - [x] Code is well-documented: - [x] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change ### Changes ### - [x] Cosine Embedding Loss computation function tests, (and when applicable, API doc) ## Comments ## - If this change is a backward incompatible change, why must this change be made. [ Full content available at: https://github.com/apache/incubator-mxnet/pull/12750 ] This message was relayed via gitbox.apache.org for devnull@infra.apache.org