pub struct CpAlsConfig {
pub rank: usize,
pub max_iterations: usize,
pub tolerance: f64,
pub normalize_factors: bool,
}Expand description
Configuration for CP-ALS algorithm.
Fields§
§rank: usizeTarget rank.
max_iterations: usizeMaximum number of ALS iterations.
tolerance: f64Convergence tolerance.
normalize_factors: boolWhether to normalize factor columns after each iteration.
Trait Implementations§
Source§impl Clone for CpAlsConfig
impl Clone for CpAlsConfig
Source§fn clone(&self) -> CpAlsConfig
fn clone(&self) -> CpAlsConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 CpAlsConfig
impl Debug for CpAlsConfig
Auto Trait Implementations§
impl Freeze for CpAlsConfig
impl RefUnwindSafe for CpAlsConfig
impl Send for CpAlsConfig
impl Sync for CpAlsConfig
impl Unpin for CpAlsConfig
impl UnsafeUnpin for CpAlsConfig
impl UnwindSafe for CpAlsConfig
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