Skip to content

[MOD-20220] Generate HNSW hybrid policy trees from paired benchmarks - #1129

Draft
lerman25 wants to merge 1 commit into
mainfrom
omer/mod-20220-hnsw-policy-trainer
Draft

lerman25 wants to merge 1 commit into
mainfrom
omer/mod-20220-hnsw-policy-trainer

Conversation

@lerman25

Copy link
Copy Markdown
Collaborator

Summary

  • Add a measured-data mode to scripts/HNSW_batches_clf.py that learns the initial ADHOC_BF or BATCHES choice using paired latency and recall measurements.
  • Evaluate by workload, report recall and timeout failures, and export the fixed tree as JSON and an optional standalone C++17 header.
  • Document the measurement format, training defaults, holdout workflow, and historical plotting mode in docs/hnsw_policy_training.md.

Validation

  • Seven trainer tests passed, including a compiled C++ check for float32 split parity.
  • Ran the CLI against synthetic fixture data and verified the held-out report and generated header.

The draft adds offline training and evaluation tooling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant