pub struct Nmf {
pub w: Array2<f64>,
pub h: Array2<f64>,
pub reconstruction_err: f64,
pub n_iter: usize,
}Expand description
Fitted NMF factors.
Fields§
§w: Array2<f64>W — the sample-side factor (n × n_components).
h: Array2<f64>H — the component-side factor (n_components × d).
reconstruction_err: f64Final Frobenius reconstruction error ‖X − W·H‖_F.
n_iter: usizeNumber of iterations run.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Nmf
impl<'de> Deserialize<'de> for Nmf
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Nmf
Auto Trait Implementations§
impl Freeze for Nmf
impl RefUnwindSafe for Nmf
impl Send for Nmf
impl Sync for Nmf
impl Unpin for Nmf
impl UnsafeUnpin for Nmf
impl UnwindSafe for Nmf
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