pub struct TemporalGraphLearning {
pub window_size: usize,
pub temporal_decay: f64,
pub aggregation_method: String,
pub k_neighbors: usize,
pub random_state: Option<u64>,
}Expand description
Temporal graph learning for time-evolving graphs
Fields§
§window_size: usizeWindow size for temporal analysis
temporal_decay: f64Decay factor for temporal weighting
aggregation_method: StringMethod for temporal aggregation: “mean”, “weighted”, “attention”
k_neighbors: usizeNumber of neighbors for graph construction
random_state: Option<u64>Random state for reproducibility
Implementations§
Source§impl TemporalGraphLearning
impl TemporalGraphLearning
Sourcepub fn window_size(self, size: usize) -> Self
pub fn window_size(self, size: usize) -> Self
Set window size
Sourcepub fn temporal_decay(self, decay: f64) -> Self
pub fn temporal_decay(self, decay: f64) -> Self
Set temporal decay factor
Sourcepub fn aggregation_method(self, method: String) -> Self
pub fn aggregation_method(self, method: String) -> Self
Set aggregation method
Sourcepub fn k_neighbors(self, k: usize) -> Self
pub fn k_neighbors(self, k: usize) -> Self
Set number of neighbors
Sourcepub fn random_state(self, seed: u64) -> Self
pub fn random_state(self, seed: u64) -> Self
Set random state
Sourcepub fn fit(
&self,
snapshots: &[ArrayView2<'_, f64>],
) -> Result<Array2<f64>, SklearsError>
pub fn fit( &self, snapshots: &[ArrayView2<'_, f64>], ) -> Result<Array2<f64>, SklearsError>
Learn from temporal graph snapshots
Trait Implementations§
Source§impl Clone for TemporalGraphLearning
impl Clone for TemporalGraphLearning
Source§fn clone(&self) -> TemporalGraphLearning
fn clone(&self) -> TemporalGraphLearning
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TemporalGraphLearning
impl RefUnwindSafe for TemporalGraphLearning
impl Send for TemporalGraphLearning
impl Sync for TemporalGraphLearning
impl Unpin for TemporalGraphLearning
impl UnwindSafe for TemporalGraphLearning
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,
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