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 — every lesson is paired with a hands-on lab you run on your own machine with real tools.

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

All courses · Pricing · About · FAQ · Glossary