pub enum Increasing {
True,
False,
Auto,
}Expand description
Monotonicity direction for the fitted function.
Mirrors scikit-learn’s increasing constructor parameter, whose
_parameter_constraints allows ["boolean", StrOptions({"auto"})] with
default True (sklearn/isotonic.py:271-274):
Increasing::True— force a non-decreasing fit (increasing=True).Increasing::False— force a non-increasing fit (increasing=False).Increasing::Auto— resolve the direction from the data at fit time via a Spearman correlation test (increasing='auto',sklearn/isotonic.py:306-307:self.increasing_ = check_increasing(X, y)).
Variants§
True
Force a non-decreasing (increasing) fit. The default, matching
IsotonicRegression(increasing=True) (sklearn/isotonic.py:274).
False
Force a non-increasing (decreasing) fit.
Auto
Resolve the direction from the data via a Spearman correlation test
(increasing='auto').
Trait Implementations§
Source§impl Clone for Increasing
impl Clone for Increasing
Source§fn clone(&self) -> Increasing
fn clone(&self) -> Increasing
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Increasing
Source§impl Debug for Increasing
impl Debug for Increasing
Source§impl Default for Increasing
impl Default for Increasing
Source§fn default() -> Increasing
fn default() -> Increasing
Returns the “default value” for a type. Read more
impl Eq for Increasing
Source§impl From<bool> for Increasing
impl From<bool> for Increasing
Source§fn from(b: bool) -> Self
fn from(b: bool) -> Self
true → Increasing::True, false → Increasing::False.
This preserves the prior with_increasing(bool) API semantics.
Source§impl PartialEq for Increasing
impl PartialEq for Increasing
Source§fn eq(&self, other: &Increasing) -> bool
fn eq(&self, other: &Increasing) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Increasing
Auto Trait Implementations§
impl Freeze for Increasing
impl RefUnwindSafe for Increasing
impl Send for Increasing
impl Sync for Increasing
impl Unpin for Increasing
impl UnsafeUnpin for Increasing
impl UnwindSafe for Increasing
Blanket Implementations§
impl<T> Boilerplate for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more