pub struct GraphExplainer {
pub lrp: GraphLRP,
pub gradient_attribution: GraphGradientAttribution,
}Expand description
Comprehensive graph explainability toolkit
Fields§
§lrp: GraphLRP§gradient_attribution: GraphGradientAttributionImplementations§
Source§impl GraphExplainer
impl GraphExplainer
pub fn new() -> Self
Sourcepub fn explain_prediction(
&mut self,
graph: &GraphData,
model_layers: &[Box<dyn GraphLayer>],
target_class: usize,
) -> Result<GraphExplanation, Box<dyn Error>>
pub fn explain_prediction( &mut self, graph: &GraphData, model_layers: &[Box<dyn GraphLayer>], target_class: usize, ) -> Result<GraphExplanation, Box<dyn Error>>
Generate comprehensive explanation for a graph prediction
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphExplainer
impl RefUnwindSafe for GraphExplainer
impl Send for GraphExplainer
impl Sync for GraphExplainer
impl Unpin for GraphExplainer
impl UnsafeUnpin for GraphExplainer
impl UnwindSafe for GraphExplainer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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