[−][src]Struct liblbfgs::Orthantwise
Orthant-Wise Limited-memory Quasi-Newton (OWL-QN) algorithm
Fields
c: f64
Coeefficient for the L1 norm of variables.
Setting this parameter to a positive value activates Orthant-Wise Limited-memory Quasi-Newton (OWL-QN) method, which minimizes the objective function F(x) combined with the L1 norm |x| of the variables, {F(x) + C |x|}. This parameter is the coeefficient for the |x|, i.e., C. As the L1 norm |x| is not differentiable at zero, the library modifies function and gradient evaluations from a client program suitably; a client program thus have only to return the function value F(x) and gradients G(x) as usual. The default value is 1.
start: i32
Start index for computing L1 norm of the variables.
This parameter is valid only for OWL-QN method (i.e., orthantwise_c != 0). This parameter b (0 <= b < N) specifies the index number from which the library computes the L1 norm of the variables x,
|x| := |x_{b}| + |x_{b+1}| + ... + |x_{N}| .
In other words, variables x_1, ..., x_{b-1} are not used for computing the L1 norm. Setting b (0 < b < N), one can protect variables, x_1, ..., x_{b-1} (e.g., a bias term of logistic regression) from being regularized. The default value is zero.
end: i32
End index for computing L1 norm of the variables.
This parameter is valid only for OWL-QN method (i.e., \ref orthantwise_c != 0). This parameter e (0 < e <= N) specifies the index number at which the library stops computing the L1 norm of the variables x,
Trait Implementations
impl Clone for Orthantwise
[src]
fn clone(&self) -> Orthantwise
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Orthantwise
[src]
impl Debug for Orthantwise
[src]
impl Default for Orthantwise
[src]
Auto Trait Implementations
impl RefUnwindSafe for Orthantwise
impl Send for Orthantwise
impl Sync for Orthantwise
impl Unpin for Orthantwise
impl UnwindSafe for Orthantwise
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,