pub struct WordEmbeddingEncoderParams {
pub embedding_dim: usize,
pub size: UInt,
pub active_bits: UInt,
pub num_hyperplanes: usize,
}Expand description
Parameters for creating a Word Embedding Encoder.
Fields§
§embedding_dim: usizeDimension of input embedding vectors.
size: UIntTotal number of bits in output SDR.
active_bits: UIntNumber of active bits in output SDR.
num_hyperplanes: usizeNumber of random hyperplanes for LSH. More hyperplanes = more precision but less overlap for similar embeddings.
Trait Implementations§
Source§impl Clone for WordEmbeddingEncoderParams
impl Clone for WordEmbeddingEncoderParams
Source§fn clone(&self) -> WordEmbeddingEncoderParams
fn clone(&self) -> WordEmbeddingEncoderParams
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WordEmbeddingEncoderParams
impl Debug for WordEmbeddingEncoderParams
Auto Trait Implementations§
impl Freeze for WordEmbeddingEncoderParams
impl RefUnwindSafe for WordEmbeddingEncoderParams
impl Send for WordEmbeddingEncoderParams
impl Sync for WordEmbeddingEncoderParams
impl Unpin for WordEmbeddingEncoderParams
impl UnwindSafe for WordEmbeddingEncoderParams
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)