pub trait CalibratedAssociationModel {
// Required methods
fn reference(&self) -> AssociationModelReference;
fn prior_probability(
&self,
request: &AssociationRequest,
hypothesis: &AssociationHypothesis,
) -> Option<f64>;
fn joint_log_likelihoods(
&self,
request: &AssociationRequest,
hypothesis: &AssociationHypothesis,
evidence: AssociationEvidenceGroup<'_, '_>,
) -> Option<BinaryLogLikelihoods>;
}Expand description
Supplies a separately calibrated prior and joint group likelihoods. None
means outside model coverage, never neutral evidence or a default prior.
The prior must not already incorporate observations in the evidence slice.
Implementations must be bounded, allocation-free and deterministic; this
boundary does not train, calibrate, authenticate or sandbox a host model.
Required Methods§
fn reference(&self) -> AssociationModelReference
fn prior_probability( &self, request: &AssociationRequest, hypothesis: &AssociationHypothesis, ) -> Option<f64>
fn joint_log_likelihoods( &self, request: &AssociationRequest, hypothesis: &AssociationHypothesis, evidence: AssociationEvidenceGroup<'_, '_>, ) -> Option<BinaryLogLikelihoods>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".