pub struct SampledModelEmbedding {
pub func_schmear: FuncSchmear,
pub func_inv_schmear: FuncInverseSchmear,
pub compressed_schmear: Schmear,
pub compressed_inv_schmear: InverseSchmear,
pub sampled_mat: Array2<f32>,
pub sampled_vec: Array1<f32>,
pub sampled_compressed_vec: Array1<f32>,
pub sampled_feat_vec: Array1<f32>,
}Expand description
Contains a bunch of useful information which originates
from drawing a sample from a TermModel.
Fields§
§func_schmear: FuncSchmearThe FuncSchmear for the TermModel that this was sampled from.
func_inv_schmear: FuncInverseSchmearThe FuncInverseSchmear for the TermModel that this was sampled from.
compressed_schmear: Schmear§compressed_inv_schmear: InverseSchmearThe compressed-space InverseSchmear for the TermModel that this was sampled from.
sampled_mat: Array2<f32>A sample from the underlying MNIW distribution for the TermModel that this was sampled from.
sampled_vec: Array1<f32>A flattened version of sampled_mat.
sampled_compressed_vec: Array1<f32>A compressed version version of sampled_vec.
sampled_feat_vec: Array1<f32>A featurized version version of sampled_compressed_vec.
Implementations§
Source§impl SampledModelEmbedding
impl SampledModelEmbedding
Sourcepub fn new(
term_model: &TermModel<'_>,
rng: &mut ThreadRng,
) -> SampledModelEmbedding
pub fn new( term_model: &TermModel<'_>, rng: &mut ThreadRng, ) -> SampledModelEmbedding
Draws a SampledModelEmbedding for the given TermModel.
Auto Trait Implementations§
impl Freeze for SampledModelEmbedding
impl RefUnwindSafe for SampledModelEmbedding
impl Send for SampledModelEmbedding
impl Sync for SampledModelEmbedding
impl Unpin for SampledModelEmbedding
impl UnwindSafe for SampledModelEmbedding
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