Dense Scores
From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-09.)
Dense Scores has 28 facts recorded in Dontopedia across 14 references, with 2 live disagreements.
Mostly:rdf:type(12), rdfs:label(4), computed from(1)
Maturity scale
raw canonical shape-checked rule-derived certifiedRdf:typein disputerdf:type
- Array[10]all time · 8099970e F2d8 437f 874b E1c72a22eeb0
- Array[11]all time · Ac759ab9 7ab3 4ec2 B6de 0d28a3f4e0cf
- Input Parameter[8]all time · A473407e 8449 4e78 89b6 989e8d589870
- Numpy Array[6]all time · Ce953854 D151 4cac B4e7 C4c5a5583796
- Num Py Array[12]all time · 6223a392 38d5 4eaa 966d Ea0055735550
- Parameter[13]all time · B5922a4d 0e9e 426c Bf72 B2561710a1f7
- Score Array[14]all time · Aecfc98e 8fd4 42fe 813a F35940e06f50
- Scores[2]all time · B2fa8237 A2ba 45f1 B609 1096fd02ce18
- Score Type[1]all time · 8419193f 8cac 4d94 919a B1c2084db6fd
- Variable[5]all time · Adfabb1c 3382 4bcc 93d2 Ae36f6f2c458
Rdfs:labelin disputerdfs:label
Computed FromcomputedFrom
- Query List[2]sourceall time · B2fa8237 A2ba 45f1 B609 1096fd02ce18
Shapeshape
- (15000, 1000)[5]all time · Adfabb1c 3382 4bcc 93d2 Ae36f6f2c458
Generated bygeneratedBy
- np.random.rand[5]all time · Adfabb1c 3382 4bcc 93d2 Ae36f6f2c458
Has ValuehasValue
- [0.7, 0.3, 0.1][6]sourceall time · Ce953854 D151 4cac B4e7 C4c5a5583796
Used inusedIn
- Hybrid Ranking[14]sourceall time · Aecfc98e 8fd4 42fe 813a F35940e06f50
Described AsdescribedAs
- Example dense scores[4]sourceall time · F2ffcb18 D871 49d2 8d5c 2b469917574c
Value SourcevalueSource
- np.random.rand[4]sourceall time · F2ffcb18 D871 49d2 8d5c 2b469917574c
Sizesize
- 25000[4]sourceall time · F2ffcb18 D871 49d2 8d5c 2b469917574c
Typetype
- numpy array[4]all time · F2ffcb18 D871 49d2 8d5c 2b469917574c
Is Parameter ofisParameterOf
- Evaluate Relevance Lift Function[7]sourceall time · E3d6146f 0be0 4107 8509 B0471fc829a9
Inbound mentions (17)
Other subjects in dontopedia point AT this entity as a value. These are inverse relationships — e.g. "X motherOf this subject" — and answer questions the forward facts can't. Grouped by predicate.
combinesCombines(4)
- Combination
ex:combination - Hybrid Ranking Algorithm
ex:hybrid_ranking_algorithm - Linear Combination
ex:linear_combination - Rank Documents
ex:rank_documents
computedFromComputed From(3)
- Hybrid Scores
ex:hybrid_scores - Mismatch
ex:mismatch - Mismatches
ex:mismatches
hasParameterHas Parameter(3)
- Evaluate Relevance Lift
ex:evaluate_relevance_lift - Rank Documents
ex:rank_documents - Log Score Mismatches
log_score_mismatches
derivedFromDerived From(2)
- Dense Scores Normalized
ex:dense_scores_normalized - Dense Scores Normalized
ex:dense_scores_normalized
combinedWithCombined With(1)
- Sparse Scores
ex:sparse_scores
comparesCompares(1)
- Mismatch
ex:mismatch
consistsOfConsists of(1)
- Dense Retrieval
ex:dense_retrieval
definesVariableDefines Variable(1)
- Example Usage
ex:example-usage
takesArgumentTakes Argument(1)
- Hybrid Ranking
ex:hybrid_ranking
Other facts (2)
The long tail: predicates that appear too rarely to warrant their own section. Filter or scroll to find a specific one. Each row links to its source.
| Predicate | Value | Ref |
|---|---|---|
| Derived From | Cosine Similarity | [3] |
| Combined With | Sparse Scores | [1] |
Timeline
Timeline axis is valid_time — when each source says the fact was true in the world, not when Dontopedia learned about it. Retracted rows are kept for provenance; coloured stripes indicate the context kind.
References (14)
- custom
ctx:claims/beam/8419193f-8cac-4d94-919a-b1c2084db6fd- full textbeam-chunktext/plain1 KB
doc:beam/8419193f-8cac-4d94-919a-b1c2084db6fdShow excerpt
alphas = np.linspace(0, 1, 11) # Range of alpha values to test best_alpha, best_map = {}, {} for query in queries: best_alpha[query], best_map[query] = tune_alpha(query, documents, relevant_docs[query], alphas) print(f"Best alpha f…
- custom
ctx:claims/beam/b2fa8237-a2ba-45f1-b609-1096fd02ce18- full textbeam-chunktext/plain1 KB
doc:beam/b2fa8237-a2ba-45f1-b609-1096fd02ce18Show excerpt
vectorizer = TfidfVectorizer() tfidf_matrix = vectorizer.fit_transform(documents) query_vector = vectorizer.transform([query]) similarity_scores = (query_vector * tfidf_matrix.T).toarray() return similarity_scores def h…
- custom
ctx:claims/beam/ad9f402f-ddf2-4c49-9c7e-e59f03a5935c - custom
ctx:claims/beam/f2ffcb18-d871-49d2-8d5c-2b469917574c- full textbeam-chunktext/plain1 KB
doc:beam/f2ffcb18-d871-49d2-8d5c-2b469917574cShow excerpt
dense_scores_normalized = normalize_scores(dense_scores) # Calculate weighted sum of sparse and dense scores hybrid_scores = alpha * sparse_scores_normalized + (1 - alpha) * dense_scores_normalized return hybrid_sc…
- custom
ctx:claims/beam/adfabb1c-3382-4bcc-93d2-ae36f6f2c458 - custom
ctx:claims/beam/ce953854-d151-4cac-b4e7-c4c5a5583796- full textbeam-chunktext/plain1 KB
doc:beam/ce953854-d151-4cac-b4e7-c4c5a5583796Show excerpt
# Calculate score mismatches mismatches = np.abs(sparse_scores - dense_scores) # Find indices where mismatches exceed the threshold mismatch_indices = np.where(mismatches > threshold)[0] # Log detailed informat…
- custom
ctx:claims/beam/e3d6146f-0be0-4107-8509-b0471fc829a9- full textbeam-chunktext/plain896 B
doc:beam/e3d6146f-0be0-4107-8509-b0471fc829a9Show excerpt
precision = precision_at_k(true_labels, predicted_labels, k=k) if precision > best_precision: best_precision = precision best_alpha = alpha print(f"Best Alpha: {best_alpha}, Best Precision@{k…
- custom
ctx:claims/beam/a473407e-8449-4e78-89b6-989e8d589870- full textbeam-chunktext/plain1 KB
doc:beam/a473407e-8449-4e78-89b6-989e8d589870Show excerpt
query = request.json['query'] results = es.search(index="documents", body={"query": {"match": {"text": query}}}) return jsonify(results) if __name__ == '__main__': app.run(host='0.0.0.0', port=5000) ``` - **Den…
- custom
ctx:claims/beam/b4174542-e9f5-41d0-809f-ec6511b667bb- full textbeam-chunktext/plain1 KB
doc:beam/b4174542-e9f5-41d0-809f-ec6511b667bbShow excerpt
dense_scores = get_embeddings([query]).dot(embeddings.T) combined_scores = 0.5 * sparse_scores + 0.5 * dense_scores return combined_scores # Example usage documents = ["This is a sample document.", "Este es un documento de mues…
- custom
ctx:claims/beam/8099970e-f2d8-437f-874b-e1c72a22eeb0- full textbeam-chunktext/plain1 KB
doc:beam/8099970e-f2d8-437f-874b-e1c72a22eeb0Show excerpt
Assuming you have a function `rank_documents` that combines sparse and dense scores, here are some unit tests you can write using the `unittest` framework in Python: ```python import unittest import numpy as np def rank_documents(query, s…
- custom
ctx:claims/beam/ac759ab9-7ab3-4ec2-b6de-0d28a3f4e0cf- full textbeam-chunktext/plain1 KB
doc:beam/ac759ab9-7ab3-4ec2-b6de-0d28a3f4e0cfShow excerpt
mismatch_indices = np.where(mismatches > threshold)[0] # Log detailed information for each significant mismatch for idx in mismatch_indices: logging.warning( json.dumps({ 'query_id': quer…
- custom
ctx:claims/beam/6223a392-38d5-4eaa-966d-ea0055735550- full textbeam-chunktext/plain1 KB
doc:beam/6223a392-38d5-4eaa-966d-ea0055735550Show excerpt
# Find indices where mismatches exceed the threshold mismatch_indices = np.where(mismatches > threshold)[0] # Log detailed information for each significant mismatch for idx in mismatch_indices: logger.warning( …
- custom
ctx:claims/beam/b5922a4d-0e9e-426c-bf72-b2561710a1f7 - custom
ctx:claims/beam/aecfc98e-8fd4-42fe-813a-f35940e06f50- full textbeam-chunktext/plain1 KB
doc:beam/aecfc98e-8fd4-42fe-813a-f35940e06f50Show excerpt
expected_scores = np.random.rand(25000) # Example expected scores # Compute hybrid scores hybrid_scores = hybrid_ranking(sparse_scores, dense_scores, alpha=0.6) # Log mismatches for i in range(len(expected_scores)): log_mismatch(i, […
See also
Keep researching
Missing something or suspicious of what's here? Kick off a research session — a Claude agent will investigate, cite its sources, and file new facts into a dedicated context you can review before accepting into the shared view.