phenotypic.tune.TuningEngine#
- class phenotypic.tune.TuningEngine(spec: TuningSpec, store: StudyStore | None = None)[source]#
Bases:
objectRuns a
TuningSpecover a calibration image set, journaling to a store.Methods
Initialize the engine.
Build the winning
ImagePipelinefrom the best trial (orNone).Run the loop; return the best trial.
Attributes
The trial store this engine appends to.
- Parameters:
spec (TuningSpec)
store (Optional[StudyStore])
- __init__(spec: TuningSpec, store: StudyStore | None = None) None[source]#
Initialize the engine.
- Parameters:
spec (TuningSpec) – The tuning recipe (base pipeline + space + scorer + strategy + budget).
store (StudyStore | None) – An optional pre-populated store (resume); any backend satisfying the
StudyStoreProtocol. A freshJournalStudyStoreis created when omitted.
- Return type:
None
- property store: StudyStore#
The trial store this engine appends to.