Liking cljdoc? Tell your friends :D

easy-onnx.embed

Modality-agnostic embedding helpers. No deps on other easy-onnx sections.

Modality-agnostic embedding helpers. No deps on other easy-onnx sections.
raw docstring

cosine-distanceclj

(cosine-distance a b)

Cosine distance (1 - similarity). Returns a value in [0, 2].

Cosine distance (1 - similarity). Returns a value in [0, 2].
raw docstring

cosine-similarityclj

(cosine-similarity a b)

Cosine similarity between two float[] vectors. Returns a value in [-1, 1].

Cosine similarity between two float[] vectors. Returns a value in [-1, 1].
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close