pub struct GraphSageOptions {
pub dimensions: usize,
pub hidden_dimensions: usize,
pub layers: usize,
pub sample_sizes: Vec<usize>,
pub aggregator: GraphSageAggregator,
pub epochs: usize,
pub negative_samples: usize,
pub learning_rate: f64,
pub feature_properties: Vec<String>,
pub seed: u64,
}Expand description
Unsupervised GraphSAGE v1 options.
feature_properties must be supplied explicitly: the empty default is not a
runnable GraphSAGE configuration.
Fields§
§dimensions: usizeOutput vector width.
Width of non-final layers.
layers: usizeNumber of aggregation layers.
sample_sizes: Vec<usize>Ordered fanout for each layer.
aggregator: GraphSageAggregatorVersion-pinned neighborhood aggregator.
epochs: usizeTraining epochs.
negative_samples: usizeNegative samples per positive pair.
learning_rate: f64Constant Adam learning rate.
feature_properties: Vec<String>Ordered graph-native numeric feature properties.
seed: u64Caller seed; omission normalizes to zero.
Trait Implementations§
Source§impl Clone for GraphSageOptions
impl Clone for GraphSageOptions
Source§fn clone(&self) -> GraphSageOptions
fn clone(&self) -> GraphSageOptions
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 moreSource§impl Debug for GraphSageOptions
impl Debug for GraphSageOptions
Source§impl Default for GraphSageOptions
impl Default for GraphSageOptions
Source§impl PartialEq for GraphSageOptions
impl PartialEq for GraphSageOptions
impl StructuralPartialEq for GraphSageOptions
Auto Trait Implementations§
impl Freeze for GraphSageOptions
impl RefUnwindSafe for GraphSageOptions
impl Send for GraphSageOptions
impl Sync for GraphSageOptions
impl Unpin for GraphSageOptions
impl UnsafeUnpin for GraphSageOptions
impl UnwindSafe for GraphSageOptions
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