pub struct LBFGS<L, P, F> { /* private fields */ }
Expand description
Implementations§
Source§impl<L, P, F: ArgminFloat> LBFGS<L, P, F>
impl<L, P, F: ArgminFloat> LBFGS<L, P, F>
Sourcepub fn with_tol_grad(self, tol_grad: F) -> Self
pub fn with_tol_grad(self, tol_grad: F) -> Self
Sets tolerance for the stopping criterion based on the change of the norm on the gradient
Sourcepub fn with_tol_cost(self, tol_cost: F) -> Self
pub fn with_tol_cost(self, tol_cost: F) -> Self
Sets tolerance for the stopping criterion based on the change of the cost stopping criterion
Trait Implementations§
Source§impl<'de, L, P, F> Deserialize<'de> for LBFGS<L, P, F>
impl<'de, L, P, F> Deserialize<'de> for LBFGS<L, P, F>
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
Source§impl<O, L, P, F> Solver<O> for LBFGS<L, P, F>where
O: ArgminOp<Param = P, Output = F, Float = F>,
O::Param: Clone + Serialize + DeserializeOwned + Debug + Default + ArgminSub<O::Param, O::Param> + ArgminAdd<O::Param, O::Param> + ArgminDot<O::Param, O::Float> + ArgminScaledAdd<O::Param, O::Float, O::Param> + ArgminNorm<O::Float> + ArgminMul<O::Float, O::Param>,
O::Hessian: Clone + Default + Serialize + DeserializeOwned,
L: Clone + ArgminLineSearch<O::Param, O::Float> + Solver<OpWrapper<O>>,
F: ArgminFloat,
impl<O, L, P, F> Solver<O> for LBFGS<L, P, F>where
O: ArgminOp<Param = P, Output = F, Float = F>,
O::Param: Clone + Serialize + DeserializeOwned + Debug + Default + ArgminSub<O::Param, O::Param> + ArgminAdd<O::Param, O::Param> + ArgminDot<O::Param, O::Float> + ArgminScaledAdd<O::Param, O::Float, O::Param> + ArgminNorm<O::Float> + ArgminMul<O::Float, O::Param>,
O::Hessian: Clone + Default + Serialize + DeserializeOwned,
L: Clone + ArgminLineSearch<O::Param, O::Float> + Solver<OpWrapper<O>>,
F: ArgminFloat,
Source§fn init(
&mut self,
op: &mut OpWrapper<O>,
state: &IterState<O>,
) -> Result<Option<ArgminIterData<O>>, Error>
fn init( &mut self, op: &mut OpWrapper<O>, state: &IterState<O>, ) -> Result<Option<ArgminIterData<O>>, Error>
Initializes the algorithm Read more
Source§fn next_iter(
&mut self,
op: &mut OpWrapper<O>,
state: &IterState<O>,
) -> Result<ArgminIterData<O>, Error>
fn next_iter( &mut self, op: &mut OpWrapper<O>, state: &IterState<O>, ) -> Result<ArgminIterData<O>, Error>
Computes one iteration of the algorithm.
Source§fn terminate(&mut self, state: &IterState<O>) -> TerminationReason
fn terminate(&mut self, state: &IterState<O>) -> TerminationReason
Checks whether the algorithm must be terminated
Source§fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason
fn terminate_internal(&mut self, state: &IterState<O>) -> TerminationReason
Checks whether basic termination reasons apply. Read more
Auto Trait Implementations§
impl<L, P, F> Freeze for LBFGS<L, P, F>
impl<L, P, F> RefUnwindSafe for LBFGS<L, P, F>
impl<L, P, F> Send for LBFGS<L, P, F>
impl<L, P, F> Sync for LBFGS<L, P, F>
impl<L, P, F> Unpin for LBFGS<L, P, F>
impl<L, P, F> UnwindSafe for LBFGS<L, P, F>
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