pub struct TrainingOutcome {Show 22 fields
pub schema_version: u32,
pub outcome_id: String,
pub run_id: RunId,
pub training_request_fingerprint: String,
pub data_identities: Vec<TrainingDataIdentity>,
pub selection_output_id: String,
pub effective_plan: ExecutionPlan,
pub effective_plan_fingerprint: String,
pub selected_variant_id: VariantId,
pub selected_variant_fingerprint: String,
pub parameter_patches: Vec<ParameterPatch>,
pub refit: TrainingRefitOutcome,
pub score_set: ScoreSet,
pub outputs: Vec<BoundTrainingOutput>,
pub lineage: Vec<LineageRecord>,
pub portable_prediction_caches: Option<BundlePredictionCachePayloadSet>,
pub training_influence: TrainingInfluenceManifest,
pub execution_bundle: ExecutionBundle,
pub replayable_phases: Vec<Phase>,
pub warnings: Vec<String>,
pub diagnostics: BTreeMap<String, Value>,
pub outcome_fingerprint: String,
}Expand description
Portable result of COMPILE/PLAN/FIT_CV/SELECT and optional REFIT.
Fields§
§schema_version: u32§outcome_id: String§run_id: RunId§training_request_fingerprint: String§data_identities: Vec<TrainingDataIdentity>§selection_output_id: String§effective_plan: ExecutionPlan§effective_plan_fingerprint: String§selected_variant_id: VariantId§selected_variant_fingerprint: String§parameter_patches: Vec<ParameterPatch>§refit: TrainingRefitOutcome§score_set: ScoreSet§outputs: Vec<BoundTrainingOutput>§lineage: Vec<LineageRecord>§portable_prediction_caches: Option<BundlePredictionCachePayloadSet>§training_influence: TrainingInfluenceManifest§execution_bundle: ExecutionBundle§replayable_phases: Vec<Phase>§warnings: Vec<String>§diagnostics: BTreeMap<String, Value>§outcome_fingerprint: StringImplementations§
Source§impl TrainingOutcome
impl TrainingOutcome
Sourcepub fn from_json(json: &str) -> Result<Self>
pub fn from_json(json: &str) -> Result<Self>
Strictly parse a self-fingerprinted W0 outcome without losing the JSON integer-versus-binary64 token distinction before verification.
pub fn compute_fingerprint(&self) -> Result<String>
pub fn data_identities_fingerprint(&self) -> Result<String>
pub fn execution_bundle_fingerprint(&self) -> Result<String>
Sourcepub fn to_reference(&self) -> Result<TrainingOutcomeRef>
pub fn to_reference(&self) -> Result<TrainingOutcomeRef>
Build the compact cross-link embedded by a portable predictor package.
Sourcepub fn to_portable_predictor_package(
&self,
package_id: impl Into<String>,
fitted_artifact_mode: FittedArtifactMode,
artifact_load_mode: ArtifactLoadMode,
) -> Result<PortablePredictorPackage>
pub fn to_portable_predictor_package( &self, package_id: impl Into<String>, fitted_artifact_mode: FittedArtifactMode, artifact_load_mode: ArtifactLoadMode, ) -> Result<PortablePredictorPackage>
Export a self-contained portable predictor package contract from this
training outcome. Runtime handles are never serialized; host-sidecar
artifacts are represented only by their signed artifact descriptors and
must be resolved into process-local handles by PortablePredictorPackage::load_with.
pub fn validate(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for TrainingOutcome
impl Clone for TrainingOutcome
Source§fn clone(&self) -> TrainingOutcome
fn clone(&self) -> TrainingOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrainingOutcome
impl Debug for TrainingOutcome
Source§impl<'de> Deserialize<'de> for TrainingOutcome
impl<'de> Deserialize<'de> for TrainingOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TrainingOutcome
impl PartialEq for TrainingOutcome
Source§impl Serialize for TrainingOutcome
impl Serialize for TrainingOutcome
impl StructuralPartialEq for TrainingOutcome
Auto Trait Implementations§
impl Freeze for TrainingOutcome
impl RefUnwindSafe for TrainingOutcome
impl Send for TrainingOutcome
impl Sync for TrainingOutcome
impl Unpin for TrainingOutcome
impl UnsafeUnpin for TrainingOutcome
impl UnwindSafe for TrainingOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more