pub struct GraphDatasetCollection;Expand description
Graph dataset collections for common benchmarks
Implementations§
Source§impl GraphDatasetCollection
impl GraphDatasetCollection
Sourcepub fn create_synthetic_dataset(
num_graphs: usize,
nodes_per_graph: usize,
edge_probability: f64,
num_features: usize,
) -> Result<Vec<GraphData>, TorshError>
pub fn create_synthetic_dataset( num_graphs: usize, nodes_per_graph: usize, edge_probability: f64, num_features: usize, ) -> Result<Vec<GraphData>, TorshError>
Create a synthetic dataset for testing
Sourcepub fn load_with_augmentation<L: GraphDatasetLoader>(
loader: L,
path: impl AsRef<Path>,
augmentation_factor: usize,
) -> IoResult<Vec<GraphData>>
pub fn load_with_augmentation<L: GraphDatasetLoader>( loader: L, path: impl AsRef<Path>, augmentation_factor: usize, ) -> IoResult<Vec<GraphData>>
Load a collection of graphs with data augmentation
Auto Trait Implementations§
impl Freeze for GraphDatasetCollection
impl RefUnwindSafe for GraphDatasetCollection
impl Send for GraphDatasetCollection
impl Sync for GraphDatasetCollection
impl Unpin for GraphDatasetCollection
impl UnsafeUnpin for GraphDatasetCollection
impl UnwindSafe for GraphDatasetCollection
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