pub struct ExplainabilityEngine;Expand description
Top-level explainability engine — wraps all explanation strategies.
Implementations§
Source§impl ExplainabilityEngine
impl ExplainabilityEngine
pub fn new() -> Self
Sourcepub fn explain_attention(
&self,
query: &str,
triples: &[ScoredTriple],
raw_scores: &[f64],
) -> AttentionExplanation
pub fn explain_attention( &self, query: &str, triples: &[ScoredTriple], raw_scores: &[f64], ) -> AttentionExplanation
Compute attention-based explanation.
Sourcepub fn explain_path(
&self,
triples: &[ScoredTriple],
from: &str,
to: &str,
) -> Option<PathExplanation>
pub fn explain_path( &self, triples: &[ScoredTriple], from: &str, to: &str, ) -> Option<PathExplanation>
Find the shortest explanatory path from from to to.
Sourcepub fn explain_provenance(&self, triples: &[ScoredTriple]) -> ProvenanceReport
pub fn explain_provenance(&self, triples: &[ScoredTriple]) -> ProvenanceReport
Build a provenance report for the given triples.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExplainabilityEngine
impl RefUnwindSafe for ExplainabilityEngine
impl Send for ExplainabilityEngine
impl Sync for ExplainabilityEngine
impl Unpin for ExplainabilityEngine
impl UnsafeUnpin for ExplainabilityEngine
impl UnwindSafe for ExplainabilityEngine
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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