pub struct MethodsHpoResumeState {
pub schema_version: u32,
pub checkpoint: N4moptCheckpointArtifact,
pub provenance: MethodsHpoResumeProvenance,
pub operation_id: String,
pub controller_id: ControllerId,
pub target_node_id: NodeId,
pub incumbent: MethodsHpoNativeIncumbent,
pub trial_history_len: u32,
pub terminal_trials: Vec<MethodsHpoTerminalEvidence>,
pub completed_proposals: Vec<MethodsHpoCompletedProposal>,
pub completed_reports: Vec<MethodsHpoCompletedReport>,
pub candidates: Vec<MethodsHpoCandidateEvidence>,
}Expand description
Atomic portable state required to resume a Methods HPO campaign.
A restore path must consume this whole object after deserializing its containing package. In particular, the N4MOPT bytes are never a free descriptor field: proposals, terminal OOF reports, candidate predictions and lineage remain inseparable from their native optimizer state.
Fields§
§schema_version: u32§checkpoint: N4moptCheckpointArtifact§provenance: MethodsHpoResumeProvenance§operation_id: StringScheduler campaign operation identity. HPO is not a graph node.
controller_id: ControllerId§target_node_id: NodeId§incumbent: MethodsHpoNativeIncumbent§trial_history_len: u32Total terminal/native-history cardinality, including failed and pruned trials which deliberately have no selectable OOF candidate payload.
terminal_trials: Vec<MethodsHpoTerminalEvidence>§completed_proposals: Vec<MethodsHpoCompletedProposal>§completed_reports: Vec<MethodsHpoCompletedReport>§candidates: Vec<MethodsHpoCandidateEvidence>Implementations§
Source§impl MethodsHpoResumeState
impl MethodsHpoResumeState
Sourcepub fn from_runtime_checkpoint(
checkpoint: RuntimeHpoCheckpointResult,
selection: MethodsHpoResumeSelection,
candidates: Vec<RuntimeHpoCandidateEvaluation>,
incumbent: RuntimeHpoIncumbent,
terminal_trials: Vec<RuntimeHpoTerminalSnapshot>,
) -> Result<MethodsHpoResumeState, DagMlError>
pub fn from_runtime_checkpoint( checkpoint: RuntimeHpoCheckpointResult, selection: MethodsHpoResumeSelection, candidates: Vec<RuntimeHpoCandidateEvaluation>, incumbent: RuntimeHpoIncumbent, terminal_trials: Vec<RuntimeHpoTerminalSnapshot>, ) -> Result<MethodsHpoResumeState, DagMlError>
Materialize the portable state from scheduler-owned campaign evidence. This is intentionally the only conversion from the non-serializable runtime checkpoint result: callers must supply every candidate’s OOF predictions and lineage, rather than serializing a bare checkpoint.
Sourcepub fn validate(&self) -> Result<(), DagMlError>
pub fn validate(&self) -> Result<(), DagMlError>
Validate internal one-to-one coverage and report-grade OOF evidence.
Sourcepub fn validate_against_plan(
&self,
plan: &ExecutionPlan,
) -> Result<(), DagMlError>
pub fn validate_against_plan( &self, plan: &ExecutionPlan, ) -> Result<(), DagMlError>
Validate state against the plan embedded in its containing package.
Trait Implementations§
Source§impl Clone for MethodsHpoResumeState
impl Clone for MethodsHpoResumeState
Source§fn clone(&self) -> MethodsHpoResumeState
fn clone(&self) -> MethodsHpoResumeState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more