Questions tagged [similarity]
Similarity measures quantify how much alike objects (e.g. documents, feature vectors) are.
similarity
1,873
questions
-1
votes
0
answers
17
views
Models for getting similarity scores between categories and keywords [closed]
I want to get a similarity score between a category like vehicles and a list of words like headphone, water, truck, and green. The goal would be for each score to be low on words outside the category ...
0
votes
1
answer
28
views
Why are my dimensions different when using OpenAi embeddings in Python?
I have a single Python function that I am using the embed JSON objects are different lengths. The issue I am having is that, somehow, the dimensions are different when comparing the vectors and I ...
1
vote
0
answers
23
views
How can I store boolean array of size 3000 efficiently in milvus?
I have a boolean array which represents store-availability of retail products across 3000 different stores.
so, my schema looks like below:
product_id = FieldSchema(
name="product_id",
...
0
votes
0
answers
47
views
How can I perform accurate vector search for complex objects?
I have objects that have many attributes, example:
item = {
'id': 123,
'name': 'Keyboard',
'price': 12,
'url': 'example.com',
'description': 'a keyboard that etc...',
'details': {
'color': '...
0
votes
0
answers
33
views
How can one output n vectors with unique metadata in a query with ChromaDB?
Following on the example here, one way to create a query of the collection from ChromaDB with filtering by a given type of metadata (i.e. "source_type") is
results = collection.query(
...
0
votes
0
answers
16
views
Fault tolerant algorithm for matching sequence of road segments
I am trying to design a system for determining the absolute position of a vehicle without using GPS. The idea is that I will record data from sensors onboard a vehicle at specified time intervals, ...
0
votes
0
answers
16
views
implementation of a search for similar documents
I want to implement a method for searching similar documents that will identify semantic links but I have no ideas at all I would be glad if you could give me some advice on what to read or give me an ...
0
votes
1
answer
88
views
Plot upper triangle correlation matrix with similarity scores using ggplot
I have a dataframe as given below:
The table only has values from the upper triangle of a matrix.
I want to plot a correlation plot (correlogram) where the colours show the correlation and size ...
0
votes
0
answers
40
views
Multi-attribute similarity search across millions or records based on criteria
Problem description: I am trying to perform an efficient multi-attribute similarity search across millions of records in a database. However, my process requires an hierarchical order of criteria for ...
0
votes
0
answers
37
views
Calculating ROGUE score between Reference summary and prediction summary
I am trying to compute ROGUE score between AI generated summary and Human written summary as described below. My summary length for both will be greater than 50 tokens. Here is my python code.
pip ...
1
vote
0
answers
36
views
Is it possible to compare multiple line graphs to give a sort of ' similarity rating'
So I am trying to measure data from a smartphone ambient light sensor (ALS). My goal is to be able to be able to look at the data and be able to infer the location of the device.
To do this my plan is ...
0
votes
0
answers
16
views
i have troubles doing a overlay of a herarchical cluster on a MDS graph in python
enter image description herei have been trying to do a overlay of a herarchical cluster over a MDS graph, so i can have my MDS dots on my graph, where the cluster is marking with a circle the the MDS ...
1
vote
2
answers
90
views
similarity between two numpy arrays based on shape but not distance
import matplotlib.pyplot as plt
import numpy as np
from numpy.linalg import norm
def cosine_similarity(arr1:np.ndarray, arr2:np.ndarray)->float:
dot_product = np.dot(arr1, arr2)
magnitude =...
1
vote
2
answers
64
views
How to detect if two sentences are simmilar, not in meaning, but in syllables/words?
Here are some examples of the types of sentences that need to be considered "similar"
there was a most extraordinary noise going on shrinking rapidly she soon made out
there was a most ...
0
votes
0
answers
47
views
How can I compare the similarity between multiple sets?
Imagine I have hundreds sellers who have a set of customer ids and I count how many customers they share (the similarity of these sets). I need to look at the similarity between multiple sets and find ...