pub struct GnnStats {
pub num_nodes: usize,
pub num_edges: usize,
pub avg_degree: f64,
pub feature_dim: usize,
pub output_dim: usize,
pub trained_iterations: u64,
}Expand description
Snapshot of graph and model statistics.
Fields§
§num_nodes: usizeNumber of nodes currently in the graph.
num_edges: usizeNumber of directed edges (2 per undirected edge).
avg_degree: f64Average out-degree across all nodes.
feature_dim: usizeDimension of the raw node feature vectors.
output_dim: usizeDimensionality of the final embedding (output of last layer, or feature dim if there are no layers).
trained_iterations: u64Total number of message-passing rounds executed via GraphNeuralNetwork::forward.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GnnStats
impl RefUnwindSafe for GnnStats
impl Send for GnnStats
impl Sync for GnnStats
impl Unpin for GnnStats
impl UnsafeUnpin for GnnStats
impl UnwindSafe for GnnStats
Blanket Implementations§
impl<T> Allocation for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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