pub struct HeterogeneousGraphLearning {
pub node_types: Vec<String>,
pub edge_types: Vec<(String, String)>,
pub edge_weights: HashMap<(String, String), f64>,
pub embedding_dims: HashMap<String, usize>,
pub k_neighbors: HashMap<(String, String), usize>,
pub random_state: Option<u64>,
}Expand description
Heterogeneous graph learning for mixed data types
Fields§
§node_types: Vec<String>Node types in the heterogeneous graph
edge_types: Vec<(String, String)>Edge types connecting different node types
edge_weights: HashMap<(String, String), f64>Weights for different edge types
embedding_dims: HashMap<String, usize>Embedding dimensions for each node type
k_neighbors: HashMap<(String, String), usize>Number of neighbors for each edge type
random_state: Option<u64>Random state for reproducibility
Implementations§
Source§impl HeterogeneousGraphLearning
impl HeterogeneousGraphLearning
Sourcepub fn node_types(self, types: Vec<String>) -> Self
pub fn node_types(self, types: Vec<String>) -> Self
Set node types
Sourcepub fn edge_types(self, types: Vec<(String, String)>) -> Self
pub fn edge_types(self, types: Vec<(String, String)>) -> Self
Set edge types
Sourcepub fn edge_weights(self, weights: HashMap<(String, String), f64>) -> Self
pub fn edge_weights(self, weights: HashMap<(String, String), f64>) -> Self
Set weights for edge types
Sourcepub fn embedding_dims(self, dims: HashMap<String, usize>) -> Self
pub fn embedding_dims(self, dims: HashMap<String, usize>) -> Self
Set embedding dimensions for node types
Sourcepub fn random_state(self, seed: u64) -> Self
pub fn random_state(self, seed: u64) -> Self
Set random state
Trait Implementations§
Source§impl Clone for HeterogeneousGraphLearning
impl Clone for HeterogeneousGraphLearning
Source§fn clone(&self) -> HeterogeneousGraphLearning
fn clone(&self) -> HeterogeneousGraphLearning
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 HeterogeneousGraphLearning
impl RefUnwindSafe for HeterogeneousGraphLearning
impl Send for HeterogeneousGraphLearning
impl Sync for HeterogeneousGraphLearning
impl Unpin for HeterogeneousGraphLearning
impl UnwindSafe for HeterogeneousGraphLearning
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