Glossary › Math

Cosine Similarity

Measures the angle between two vectors: cos(θ) = A·B / (|A|·|B|). Range [-1, 1]. Preferred for embeddings because it is magnitude-invariant — focuses on direction (meaning) not length.

Where this is taught

Related terms

Embedding

More in Math

Softmax · Cross-Entropy Loss · Perplexity

Learn this by building

DeVenture Academy teaches AI engineering through projects, with hands-on labs you run on your own machine using real tools.

Create a free account — the opening phases of 29 of 35 courses are free, no credit card. Or see Pro pricing.

All courses · Pricing · About · FAQ · Glossary