You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Model per-family quantile accuracy metrics in optimizer RAQEs #167
DDSketch benchmark rows now report mean_relative_value_error, while quantile RAQEs request mean_rank_err universally. Raqe::accuracy_ok_for treats a missing requested metric as failing, so DDSketch is never a feasible candidate when its family is enabled.
Desired outcome
Represent an RAQE accuracy requirement in a way that can evaluate each candidate family against its applicable metric and SLA, without replacing KLL’s rank-error requirement or weakening missing-metric handling.
Evidence
rqe-optimizer/examples/small_problem.rs sets quantile RAQEs to mean_rank_err.
rqe-optimizer/src/lib.rs::Raqe::accuracy_ok_for rejects a missing metric.
DDSketch cost rows now provide only mean_relative_value_error.
Acceptance criteria
DDSketch can be evaluated against a relative-value-error SLA.
KLL continues to be evaluated against a rank-error SLA.
A missing required metric remains a failure.
Tests cover both candidate families for one quantile RAQE.
Exact accumulators are checked like any family (relative_error, measures ~0). The key tracker exact-delta-set gets None; it is never a candidate.
A missing metric panics: a row or merge bracket lacking its family's metric, or a None family being checked. This includes DD's intentional omission (every true quantile 0 or every probe unanswered); the message names that cause.
AutoSketch's accuracy oracle callback is removed.search calls raqe.accuracy_ok_for(config, 1), the same check as the MILP.
dd is added to DEPLOYABLE_FAMILIES.
validate_facts rejects a non-finite accuracy_sla.
Tests: one quantile RAQE checked against a KLL row and a DD row, each by its own metric; #[should_panic] for a DD row missing its metric; small_problem.rs updated, its metric constants removed.
Activity
milindsrivastava1997 commentedon Oct 7, 2026
Agreed scope
FamilyPropertiesgainsOption<(&str, AccuracyDirection)>: e.g.kll-percall → mean_rank_err(lower),dd → mean_relative_value_error(lower), top-k →precision_at_k(higher). Names mirror the comparatorsexport_rqe_optimizer_costs.shpicks per family.accuracy_sla.accuracy_metricandaccuracy_directionare removed; each candidate is checked by its family's metric against that SLA. Caveat that one number means different guarantees for KLL vs DD: rqe-optimizer: one quantile accuracy SLA means different guarantees for KLL and DD #172.relative_error, measures ~0). The key trackerexact-delta-setgetsNone; it is never a candidate.Nonefamily being checked. This includes DD's intentional omission (every true quantile 0 or every probe unanswered); the message names that cause.searchcallsraqe.accuracy_ok_for(config, 1), the same check as the MILP.ddis added toDEPLOYABLE_FAMILIES.validate_factsrejects a non-finiteaccuracy_sla.#[should_panic]for a DD row missing its metric;small_problem.rsupdated, its metric constants removed.🤖 Generated with Claude Code
rqe-optimizer: check each family by its own accuracy metric (#167)
rqe-optimizer: check each family by its own accuracy metric (#167)
rqe-optimizer: check each family by its own accuracy metric (#173)