pub struct MultiModalGraphData {
pub graph: GraphData,
pub node_data: HashMap<usize, MultiModalNodeData>,
pub available_modalities: HashSet<Modality>,
pub modality_dims: HashMap<Modality, usize>,
}Expand description
Multi-modal graph data structure
Fields§
§graph: GraphDataBase graph structure
node_data: HashMap<usize, MultiModalNodeData>Multi-modal data for each node
available_modalities: HashSet<Modality>Available modalities in the dataset
modality_dims: HashMap<Modality, usize>Modality-specific feature dimensions
Implementations§
Source§impl MultiModalGraphData
impl MultiModalGraphData
Sourcepub fn add_node_data(&mut self, node_data: MultiModalNodeData)
pub fn add_node_data(&mut self, node_data: MultiModalNodeData)
Add multi-modal data for a node
Sourcepub fn get_modality_data(&self, modality: Modality) -> Vec<(usize, &Tensor)>
pub fn get_modality_data(&self, modality: Modality) -> Vec<(usize, &Tensor)>
Get node data for specific modalities
Sourcepub fn get_complete_nodes(&self, modalities: &[Modality]) -> Vec<usize>
pub fn get_complete_nodes(&self, modalities: &[Modality]) -> Vec<usize>
Get nodes that have all specified modalities
Sourcepub fn modality_statistics(&self) -> HashMap<Modality, f32>
pub fn modality_statistics(&self) -> HashMap<Modality, f32>
Get statistics about modality coverage
Trait Implementations§
Source§impl Clone for MultiModalGraphData
impl Clone for MultiModalGraphData
Source§fn clone(&self) -> MultiModalGraphData
fn clone(&self) -> MultiModalGraphData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MultiModalGraphData
impl RefUnwindSafe for MultiModalGraphData
impl Send for MultiModalGraphData
impl Sync for MultiModalGraphData
impl Unpin for MultiModalGraphData
impl UnsafeUnpin for MultiModalGraphData
impl UnwindSafe for MultiModalGraphData
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> 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