pub struct Node2VecOptions {
pub dimensions: usize,
pub walk_length: usize,
pub walks_per_node: usize,
pub p: f64,
pub q: f64,
pub window_size: usize,
pub negative_samples: usize,
pub epochs: usize,
pub learning_rate: f64,
pub seed: u64,
}Expand description
Node2Vec v1 options.
Fields§
§dimensions: usizeOutput vector width.
walk_length: usizeTransitions in each walk.
walks_per_node: usizeWalks originating at each selected node.
p: f64Return parameter p.
q: f64In/out parameter q.
window_size: usizeFixed context radius.
negative_samples: usizeNegative samples per positive context.
epochs: usizeTraining passes over the fixed corpus.
learning_rate: f64Constant SGNS learning rate.
seed: u64Caller seed; omission normalizes to zero.
Trait Implementations§
Source§impl Clone for Node2VecOptions
impl Clone for Node2VecOptions
Source§fn clone(&self) -> Node2VecOptions
fn clone(&self) -> Node2VecOptions
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 Node2VecOptions
impl Debug for Node2VecOptions
Source§impl Default for Node2VecOptions
impl Default for Node2VecOptions
Source§impl PartialEq for Node2VecOptions
impl PartialEq for Node2VecOptions
impl StructuralPartialEq for Node2VecOptions
Auto Trait Implementations§
impl Freeze for Node2VecOptions
impl RefUnwindSafe for Node2VecOptions
impl Send for Node2VecOptions
impl Sync for Node2VecOptions
impl Unpin for Node2VecOptions
impl UnsafeUnpin for Node2VecOptions
impl UnwindSafe for Node2VecOptions
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