Top "Cosine-similarity" questions

Cosine similarity is a measure of similarity between two vectors of an inner product space that measures the cosine of the angle between them.

Python: Cosine similarity between two large numpy arrays

I have two numpy arrays: Array 1: 500,000 rows x 100 cols Array 2: 160,000 rows x 100 cols I would like to find the largest …

python numpy scikit-learn cosine-similarity
Cosine similarity when one of vectors is all zeros

How to express the cosine similarity ( http://en.wikipedia.org/wiki/Cosine_similarity ) when one of the vectors is all …

machine-learning cluster-analysis data-mining cosine-similarity
cosine similarity on large sparse matrix with numpy

The code below causes my system to run out of memory before it completes. Can you suggest a more efficient …

python numpy memory matrix cosine-similarity
how to convert from Object[] to int[]

I want to pass myVector to another class (Case.java) but I get this kind of error message. Type mismatch: …

java vector cosine-similarity
DBSCAN error with cosine metric in python

I was trying to use DBSCAN algorithm from scikit-learn library with cosine metric but was stuck with the error. The …

scikit-learn cluster-analysis data-mining cosine-similarity dbscan
Cosine distance as vector distance function for k-means

I have a graph of N vertices where each vertex represents a place. Also I have vectors, one per user, …

cluster-analysis data-mining distance k-means cosine-similarity
python: How to calculate the cosine similarity of two word lists?

I want to calculate the cosine similarity of two lists like following: A = [u'home (private)', u'bank', u'bank', u'building(condo/…

python string list cosine-similarity
How to compare sentence similarities using embeddings from BERT

I am using the HuggingFace Transformers package to access pretrained models. As my use case needs functionality for both English …

python vector nlp cosine-similarity huggingface-transformers