generate_test_data
From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-09.)
generate_test_data is generates a set of test queries and their expected outcomes.
Mostly:returns(4), rdf:type(2), called by(2)
Maturity scale
raw canonical shape-checked rule-derived certifiedInbound mentions (8)
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.
describesDescribes(2)
- Explanation Item 4
ex:explanation-item-4 - Explanation Section
ex:explanation-section
includesStepIncludes Step(2)
- Testing
ex:testing - Testing Section
ex:testing-section
containsContains(1)
- Code Block
ex:code-block
containsFunctionContains Function(1)
- Code Structure
ex:code-structure
Other facts (16)
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 |
|---|---|---|
| Returns | test_queries | [1] |
| Returns | expected_outcomes | [1] |
| Returns | test_queries | [2] |
| Returns | expected_outcomes | [2] |
| Rdf:type | Function | [1] |
| Rdf:type | Function | [2] |
| Called by | Main | [1] |
| Called by | Main | [2] |
| Produces | test_queries | [1] |
| Produces | expected_outcomes | [1] |
| Returns Multiple | test_queries | [2] |
| Returns Multiple | expected_outcomes | [2] |
| Has Parameter | num_queries | [1] |
| Description | generates a set of test queries and their expected outcomes | [2] |
| Parameter | num_queries | [2] |
| Purpose | to create validation dataset | [2] |
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 (2)
ctx:claims/beam/03fa72aa-cf63-4dbd-be06-fea404a8cebd- full textbeam-chunktext/plain1 KB
doc:beam/03fa72aa-cf63-4dbd-be06-fea404a8cebdShow excerpt
return test_queries, expected_outcomes # Tune the threshold def tune_threshold(test_queries, expected_outcomes, thresholds): best_threshold = None best_precision = 0 for threshold in thresholds: precision = evaluate…
ctx:claims/beam/4bc47b54-8640-442a-b990-773839dd8a41- full textbeam-chunktext/plain1 KB
doc:beam/4bc47b54-8640-442a-b990-773839dd8a41Show excerpt
best_threshold = threshold return best_threshold, best_precision # Main function to run the optimization def main(): num_queries = 2500 test_queries, expected_outcomes = generate_test_data(num_queries) # De…
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.