pub struct ProjectedGradient {
pub learning_rate: f64,
pub max_iter: usize,
pub tol: f64,
pub lb: Vec<f64>,
pub ub: Vec<f64>,
}Expand description
Projected gradient descent with box constraints lb ≤ x ≤ ub.
Fields§
§learning_rate: f64Fixed learning rate.
max_iter: usizeMaximum number of iterations.
tol: f64Convergence tolerance.
lb: Vec<f64>Lower bound per coordinate.
ub: Vec<f64>Upper bound per coordinate.
Implementations§
Trait Implementations§
Source§impl Clone for ProjectedGradient
impl Clone for ProjectedGradient
Source§fn clone(&self) -> ProjectedGradient
fn clone(&self) -> ProjectedGradient
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 moreAuto Trait Implementations§
impl Freeze for ProjectedGradient
impl RefUnwindSafe for ProjectedGradient
impl Send for ProjectedGradient
impl Sync for ProjectedGradient
impl Unpin for ProjectedGradient
impl UnsafeUnpin for ProjectedGradient
impl UnwindSafe for ProjectedGradient
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