pub struct ShapeletDiscoveryConfig {
pub min_length: usize,
pub max_length: usize,
pub max_candidates: Option<usize>,
pub max_shapelets: usize,
pub quality: QualityMeasure,
pub seed: u64,
}Expand description
Configuration for discover_shapelets.
max_length and max_shapelets accept the sentinel value 0, which is
resolved at fit time: max_length = 0 clamps to the series length
(ncols), and max_shapelets = 0 resolves to min(10 * n_train, 1000)
(the sktime-style default).
Fields§
§min_length: usizeMinimum candidate subsequence length (>= 1). Default 3.
max_length: usizeMaximum candidate subsequence length. 0 = clamp to series length.
max_candidates: Option<usize>Cap on the number of candidates evaluated. Some(m) random-samples m
(seeded, reproducible) when the exhaustive count exceeds m; None =
exhaustive. Default Some(10_000).
max_shapelets: usizeNumber of shapelets to keep after selection (>= 1). 0 resolves to
min(10 * n_train, 1000) at fit time.
quality: QualityMeasureDiscriminative quality measure. Default QualityMeasure::InfoGain.
seed: u64Seed for deterministic candidate sampling. Default 0.
Trait Implementations§
Source§impl Clone for ShapeletDiscoveryConfig
impl Clone for ShapeletDiscoveryConfig
Source§fn clone(&self) -> ShapeletDiscoveryConfig
fn clone(&self) -> ShapeletDiscoveryConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ShapeletDiscoveryConfig
impl Debug for ShapeletDiscoveryConfig
Source§impl Default for ShapeletDiscoveryConfig
impl Default for ShapeletDiscoveryConfig
Source§impl PartialEq for ShapeletDiscoveryConfig
impl PartialEq for ShapeletDiscoveryConfig
impl StructuralPartialEq for ShapeletDiscoveryConfig
Auto Trait Implementations§
impl Freeze for ShapeletDiscoveryConfig
impl RefUnwindSafe for ShapeletDiscoveryConfig
impl Send for ShapeletDiscoveryConfig
impl Sync for ShapeletDiscoveryConfig
impl Unpin for ShapeletDiscoveryConfig
impl UnsafeUnpin for ShapeletDiscoveryConfig
impl UnwindSafe for ShapeletDiscoveryConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.