pub struct PortablePredictorPackage {Show 16 fields
pub schema_version: u32,
pub package_id: String,
pub template: PredictorTemplate,
pub training_request_fingerprint: String,
pub training_outcome: TrainingOutcomeRef,
pub effective_plan: ExecutionPlan,
pub execution_bundle: ExecutionBundle,
pub conformal_calibration: Option<ConformalCalibration>,
pub conformal_calibration_replay: Option<TrainingReplayOutcome>,
pub output_bindings: Vec<OutputBinding>,
pub predictor_node_ids: Vec<NodeId>,
pub training_influence: TrainingInfluenceManifest,
pub data_identities: Vec<TrainingDataIdentity>,
pub fitted_artifact_mode: FittedArtifactMode,
pub artifact_bindings: Vec<PackageArtifactBinding>,
pub package_fingerprint: String,
}Expand description
Portable deployment package. It contains only JSON-safe contracts and
artifact descriptors; process-local handles live exclusively in
LoadedPredictor.
Fields§
§schema_version: u32§package_id: String§template: PredictorTemplate§training_request_fingerprint: String§training_outcome: TrainingOutcomeRef§effective_plan: ExecutionPlan§execution_bundle: ExecutionBundle§conformal_calibration: Option<ConformalCalibration>Complete native calibration state for standalone package replay. The nested execution bundle carries the matching typed reference.
conformal_calibration_replay: Option<TrainingReplayOutcome>Complete pre-calibration PREDICT replay evidence retained by V2.
output_bindings: Vec<OutputBinding>§predictor_node_ids: Vec<NodeId>§training_influence: TrainingInfluenceManifest§data_identities: Vec<TrainingDataIdentity>§fitted_artifact_mode: FittedArtifactMode§artifact_bindings: Vec<PackageArtifactBinding>§package_fingerprint: StringImplementations§
Source§impl PortablePredictorPackage
impl PortablePredictorPackage
pub fn compute_fingerprint(&self) -> Result<String, DagMlError>
pub fn from_json(json: &str) -> Result<PortablePredictorPackage, DagMlError>
pub fn validate(&self) -> Result<(), DagMlError>
pub fn load_with<H>( self, resolver: impl FnMut(&RefitArtifactRecord) -> Result<H, DagMlError>, ) -> Result<LoadedPredictor<H>, DagMlError>
Trait Implementations§
Source§impl Clone for PortablePredictorPackage
impl Clone for PortablePredictorPackage
Source§fn clone(&self) -> PortablePredictorPackage
fn clone(&self) -> PortablePredictorPackage
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 PortablePredictorPackage
impl Debug for PortablePredictorPackage
Source§impl<'de> Deserialize<'de> for PortablePredictorPackage
impl<'de> Deserialize<'de> for PortablePredictorPackage
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PortablePredictorPackage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PortablePredictorPackage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PortablePredictorPackage
impl PartialEq for PortablePredictorPackage
Source§impl Serialize for PortablePredictorPackage
impl Serialize for PortablePredictorPackage
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PortablePredictorPackage
Auto Trait Implementations§
impl Freeze for PortablePredictorPackage
impl RefUnwindSafe for PortablePredictorPackage
impl Send for PortablePredictorPackage
impl Sync for PortablePredictorPackage
impl Unpin for PortablePredictorPackage
impl UnsafeUnpin for PortablePredictorPackage
impl UnwindSafe for PortablePredictorPackage
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