pub struct Params { /* private fields */ }Expand description
A set of parameters.
Implementations§
Source§impl Params
impl Params
Sourcepub fn learning_rate(&mut self, value: f32) -> &mut Self
pub fn learning_rate(&mut self, value: f32) -> &mut Self
Sets the learning rate.
Sourcepub fn iterations(&mut self, value: i32) -> &mut Self
pub fn iterations(&mut self, value: i32) -> &mut Self
Sets the number of iterations.
Sourcepub fn normalization(&mut self, value: bool) -> &mut Self
pub fn normalization(&mut self, value: bool) -> &mut Self
Sets whether to use instance-wise normalization.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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