pub struct GovernanceScorerModel { /* private fields */ }Expand description
Learned governance scorer replacing the L2 norm on EffectVector.
Inputs (5): risk, fairness, privacy, novelty, security Output (1): composite governance score
Fallback: standard L2 norm (sqrt of sum of squares).
Implementations§
Source§impl GovernanceScorerModel
impl GovernanceScorerModel
Sourcepub fn drain_events(&mut self) -> Vec<EmlEvent>
pub fn drain_events(&mut self) -> Vec<EmlEvent>
Drain accumulated EML lifecycle events for ExoChain forwarding.
Sourcepub fn is_trained(&self) -> bool
pub fn is_trained(&self) -> bool
Whether the model has been trained.
Sourcepub fn training_sample_count(&self) -> usize
pub fn training_sample_count(&self) -> usize
Number of training samples collected.
Sourcepub fn predict(
&self,
risk: f64,
fairness: f64,
privacy: f64,
novelty: f64,
security: f64,
) -> f64
pub fn predict( &self, risk: f64, fairness: f64, privacy: f64, novelty: f64, security: f64, ) -> f64
Predict a composite governance score from effect dimensions.
When untrained, falls back to L2 norm (sqrt of sum of squares).
Trait Implementations§
Source§impl Clone for GovernanceScorerModel
impl Clone for GovernanceScorerModel
Source§impl Debug for GovernanceScorerModel
impl Debug for GovernanceScorerModel
Source§impl Default for GovernanceScorerModel
impl Default for GovernanceScorerModel
Source§impl<'de> Deserialize<'de> for GovernanceScorerModel
impl<'de> Deserialize<'de> for GovernanceScorerModel
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
Auto Trait Implementations§
impl Freeze for GovernanceScorerModel
impl RefUnwindSafe for GovernanceScorerModel
impl Send for GovernanceScorerModel
impl Sync for GovernanceScorerModel
impl Unpin for GovernanceScorerModel
impl UnsafeUnpin for GovernanceScorerModel
impl UnwindSafe for GovernanceScorerModel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more