Skip to content

Example: diagnostic assay trade study with cost lookup table #83

@jc-macdonald

Description

@jc-macdonald

Problem

No example demonstrates the Annotation workflow for external cost/metadata lookup tables — a common use case in lab/clinical DOE where each assay, reagent, or test has a known unit cost.

Proposed

Add examples/assay_study.py showing:

  • CATEGORICAL factors (e.g., assay type: PCR, ELISA, rapid antigen)
  • A cost lookup table via Annotation(name="unit_cost", lookup={...}, key="assay")
  • Cost as an Observable("cost", Direction.MINIMIZE) in the scorer for Pareto optimization (accuracy vs. cost)
  • Multi-phase study: screening → refinement with top_k_pareto_filter
  • Accessing results.annotations to inspect per-trial costs

Notes

Demonstrates both paths: Annotation for metadata and Observable for optimization. Should include a corresponding docs page (docs/guide/assay.md) with narrative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2-mediumShould fixdocumentationImprovements or additions to documentationfeatureNew feature or enhancementgood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions