Struct std_dev::regression::gradient_descent::SimultaneousOptions
source · pub struct SimultaneousOptions {
pub learn_rate: f64,
pub factor_decrease: f64,
pub factor_increase: f64,
pub target_accuracy: f64,
}
Available on crate feature
regression
only.Fields§
§learn_rate: f64
§factor_decrease: f64
§factor_increase: f64
§target_accuracy: f64
Implementations§
Trait Implementations§
source§impl LinearEstimator for SimultaneousOptions
impl LinearEstimator for SimultaneousOptions
source§fn model_linear(
&self,
predictors: &[f64],
outcomes: &[f64]
) -> LinearCoefficients
fn model_linear( &self, predictors: &[f64], outcomes: &[f64] ) -> LinearCoefficients
source§fn boxed_linear(self) -> Box<dyn LinearEstimator>where
Self: Sized + 'static,
fn boxed_linear(self) -> Box<dyn LinearEstimator>where Self: Sized + 'static,
Put this estimator in a box.
This is useful for conditionally choosing different estimators.
source§impl PolynomialEstimator for SimultaneousOptions
impl PolynomialEstimator for SimultaneousOptions
source§fn model_polynomial(
&self,
predictors: &[f64],
outcomes: &[f64],
degree: usize
) -> PolynomialCoefficients
fn model_polynomial( &self, predictors: &[f64], outcomes: &[f64], degree: usize ) -> PolynomialCoefficients
Model the
PolynomialCoefficients
from predictors
and outcomes
.
Also takes a degree
of the target polynomial. Some estimators may panic when degree
is out of their range. Read moresource§fn boxed_polynomial(self) -> Box<dyn PolynomialEstimator>where
Self: Sized + 'static,
fn boxed_polynomial(self) -> Box<dyn PolynomialEstimator>where Self: Sized + 'static,
Put this estimator in a box.
This is useful for conditionally choosing different estimators.
Auto Trait Implementations§
impl RefUnwindSafe for SimultaneousOptions
impl Send for SimultaneousOptions
impl Sync for SimultaneousOptions
impl Unpin for SimultaneousOptions
impl UnwindSafe for SimultaneousOptions
Blanket Implementations§
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where T: CheckedCast<Dst>,
Casts the value.
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where T: OverflowingCast<Dst>,
Casts the value.
source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere Src: OverflowingCast<Dst>,
source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
OverflowingCasts the value.
source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere T: SaturatingCast<Dst>,
Casts the value.
source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere Src: SaturatingCast<Dst>,
source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere T: UnwrappedCast<Dst>,
Casts the value.
source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere Src: UnwrappedCast<Dst>,
source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
UnwrappedCasts the value.
source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere T: WrappingCast<Dst>,
Casts the value.
source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere Src: WrappingCast<Dst>,
source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
WrappingCasts the value.