pub struct ChangePointDetector<S> { /* private fields */ }Expand description
ChangePointDetector for detecting structural changes in time series
Implementations§
Source§impl ChangePointDetector<Untrained>
impl ChangePointDetector<Untrained>
Sourcepub fn method(self, method: ChangePointMethod) -> Self
pub fn method(self, method: ChangePointMethod) -> Self
Set the detection method
Sourcepub fn min_segment_length(self, min_segment_length: usize) -> Self
pub fn min_segment_length(self, min_segment_length: usize) -> Self
Set the minimum segment length
Sourcepub fn binary_output(self, binary_output: bool) -> Self
pub fn binary_output(self, binary_output: bool) -> Self
Set whether to use binary output
Trait Implementations§
Source§impl<S: Clone> Clone for ChangePointDetector<S>
impl<S: Clone> Clone for ChangePointDetector<S>
Source§fn clone(&self) -> ChangePointDetector<S>
fn clone(&self) -> ChangePointDetector<S>
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 moreSource§impl<S: Debug> Debug for ChangePointDetector<S>
impl<S: Debug> Debug for ChangePointDetector<S>
Source§impl Default for ChangePointDetector<Untrained>
impl Default for ChangePointDetector<Untrained>
Source§impl Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ()> for ChangePointDetector<Untrained>
impl Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>, ()> for ChangePointDetector<Untrained>
Source§type Fitted = ChangePointDetector<Trained>
type Fitted = ChangePointDetector<Trained>
The fitted model type
Source§fn fit(self, _x: &Array1<Float>, _y: &()) -> Result<Self::Fitted>
fn fit(self, _x: &Array1<Float>, _y: &()) -> Result<Self::Fitted>
Fit the model to the provided data with validation
Source§fn fit_with_validation(
self,
x: &X,
y: &Y,
_x_val: Option<&X>,
_y_val: Option<&Y>,
) -> Result<(Self::Fitted, FitMetrics), SklearsError>where
Self: Sized,
fn fit_with_validation(
self,
x: &X,
y: &Y,
_x_val: Option<&X>,
_y_val: Option<&Y>,
) -> Result<(Self::Fitted, FitMetrics), SklearsError>where
Self: Sized,
Fit with custom validation and early stopping
Auto Trait Implementations§
impl<S> Freeze for ChangePointDetector<S>
impl<S> RefUnwindSafe for ChangePointDetector<S>where
S: RefUnwindSafe,
impl<S> Send for ChangePointDetector<S>where
S: Send,
impl<S> Sync for ChangePointDetector<S>where
S: Sync,
impl<S> Unpin for ChangePointDetector<S>where
S: Unpin,
impl<S> UnwindSafe for ChangePointDetector<S>where
S: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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