Module study
Expand description
Studies: configuration, budgets, the read snapshot, and the loop.
A study is a search space, a direction (or several), a seed, a budget and the trials evaluated so far. This module owns both halves:
- the data: the
StudyConfiga study is created from, itsBudget, the rawStudyViewsamplers and schedulers see, and the hydratedStudySnapshotobservers use; - the driving:
Study, the handle that binds storage, sampler, scheduler and clock together and turns them into ask/tell andoptimize.
§One sync per decision point
A handle keeps its view and advances it through a Cursor, so a decision
costs exactly one incremental storage read — never a re-read of the study,
and never one read per suggest. The
decision points are ask and each terminal tell.
Re-exports§
pub use crate::storage::StudyCatalog;pub use crate::storage::StudyCreateOutcome;pub use crate::storage::StudyLoadOutcome;pub use crate::storage::StudySummary;pub use crate::storage::Cursor;
Structs§
- Budget
- What a study is allowed to spend.
- Final
Report - The outcome of the final test-seed re-evaluation stage
(
Study::reevaluate). - Lineage
Entry - One trial’s place in the fork genealogy.
- Reeval
Entry - One configuration’s tune-vs-test comparison in a
FinalReport. - Retry
Policy - What a failed trial is allowed to cost before the study gives up on it.
- Retry
Record - What a retried trial records about its origin.
- Study
- A study: storage, sampler, scheduler, clock and configuration, bound.
- Study
Builder - Builds a
Study, injecting the handles it drives. - Study
Config - Everything a study is created from.
- Study
Locator - Resolves study identity through a storage backend’s optional catalog.
- Study
Reader - A read-only snapshot of one study.
- Study
Snapshot - One immutable, presentation-neutral study observation.
- Study
View - A consistent, incrementally maintained view of a study.
- Tracing
Observer - Observer adapter that emits
StudyEventvalues as structuredtracingevents.
Enums§
- Direction
- Which way is better for one objective.
- Resource
Unit - What the
stepof an intermediate report counts. - Study
Event - A committed lifecycle event emitted by a
Study.
Traits§
- Study
Observer - Receives typed study lifecycle events.
Functions§
- fork_
lineage - Reconstructs the fork genealogy of a study from a
StudyView.