Skip to content

v0.5.45 — Active-learning batch-2 selector (Loop 24) - #143

Merged
cschanhniem merged 1 commit into
mainfrom
loop-24-batch-selector
Jul 6, 2026
Merged

cschanhniem merged 1 commit into
mainfrom
loop-24-batch-selector

Conversation

@cschanhniem

Copy link
Copy Markdown
Collaborator

Loop 24 — Second-batch selection logic

Bottleneck

The recalibration pipeline could compute weight updates and produce a reviewable report, but had no way to pick the next 8-12 candidates for lab testing.

Changes

  • Added active_learning/selector.py: select_batch_2() with uncertainty sampling (disagreement + ensemble proximity to 0.5), diversity vs batch 1 (sequence similarity), safety/selectivity gates, and min-uncertainty-probe guarantee
  • Added CLI select-batch: reads pool CSV and batch-1 IDs, writes JSON manifest with BatchSelection dataclass
  • 11 tests: basic selection, safety gate, selectivity gate, uncertainty probe, diversity, empty pool, all-gated-out, selection_reason, metadata, CLI success/error

Verification

1824 passed in 75.25s

Next

Loop 25 — Active-learning benchmark on synthetic data

Add batch-2 candidate selector for the calibration loop:
- active_learning/selector.py: select_batch_2() with uncertainty sampling,
  diversity vs batch-1, configurable safety/selectivity gates, and
  min-uncertainty-probe guarantee
- CLI : reads pool CSV and batch-1 IDs, writes JSON manifest
- 11 tests covering: basic selection, safety gate, selectivity gate,
  uncertainty probe, diversity, empty pool, all-gated-out, selection_reason,
  metadata shape, CLI success/error paths
- 1824 total tests passing
@cschanhniem
cschanhniem merged commit 734215c into main Jul 6, 2026
1 check failed
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