Skip to main content

OptProphetOptions

Struct OptProphetOptions 

Source
pub struct OptProphetOptions {
Show 17 fields pub growth: Option<GrowthType>, pub changepoints: Option<Vec<TimestampSeconds>>, pub n_changepoints: Option<u32>, pub changepoint_range: Option<PositiveFloat>, pub yearly_seasonality: Option<SeasonalityOption>, pub weekly_seasonality: Option<SeasonalityOption>, pub daily_seasonality: Option<SeasonalityOption>, pub seasonality_mode: Option<FeatureMode>, pub seasonality_prior_scale: Option<PositiveFloat>, pub changepoint_prior_scale: Option<PositiveFloat>, pub estimation: Option<EstimationMode>, pub interval_width: Option<IntervalWidth>, pub uncertainty_samples: Option<u32>, pub scaling: Option<Scaling>, pub holidays: Option<HashMap<String, Holiday>>, pub holidays_prior_scale: Option<PositiveFloat>, pub holidays_mode: Option<FeatureMode>,
}
Expand description

Optional version of Prophet’s options, before applying any defaults.

Fields§

§growth: Option<GrowthType>

The type of growth (trend) to use.

§changepoints: Option<Vec<TimestampSeconds>>

An optional list of changepoints.

If not provided, changepoints will be automatically selected.

§n_changepoints: Option<u32>

The number of potential changepoints to include.

Not used if changepoints is provided.

If provided and changepoints is not provided, then n_changepoints potential changepoints will be selected uniformly from the first changepoint_range proportion of the history.

§changepoint_range: Option<PositiveFloat>

The proportion of the history to consider for potential changepoints.

Not used if changepoints is provided.

§yearly_seasonality: Option<SeasonalityOption>

How to fit yearly seasonality.

§weekly_seasonality: Option<SeasonalityOption>

How to fit weekly seasonality.

§daily_seasonality: Option<SeasonalityOption>

How to fit daily seasonality.

§seasonality_mode: Option<FeatureMode>

How to model seasonality.

§seasonality_prior_scale: Option<PositiveFloat>

The prior scale for seasonality.

This modulates the strength of seasonality, with larger values allowing the model to fit larger seasonal fluctuations and smaller values dampening the seasonality.

Can be specified for individual seasonalities using Prophet::add_seasonality.

§changepoint_prior_scale: Option<PositiveFloat>

The prior scale for changepoints.

This modulates the flexibility of the automatic changepoint selection. Large values will allow many changepoints, while small values will allow few changepoints.

§estimation: Option<EstimationMode>

How to perform parameter estimation.

When EstimationMode::Mle or EstimationMode::Map are used then no MCMC samples are taken.

§interval_width: Option<IntervalWidth>

The width of the uncertainty intervals.

Must be between 0.0 and 1.0. Common values are 0.8 (80%), 0.9 (90%) and 0.95 (95%).

§uncertainty_samples: Option<u32>

The number of simulated draws used to estimate uncertainty intervals.

Setting this value to 0 will disable uncertainty estimation and speed up the calculation.

§scaling: Option<Scaling>

How to scale the data prior to fitting the model.

§holidays: Option<HashMap<String, Holiday>>

Holidays to include in the model.

§holidays_prior_scale: Option<PositiveFloat>

Prior scale for holidays.

This parameter modulates the strength of the holiday components model, unless overridden in each individual holiday’s input.

§holidays_mode: Option<FeatureMode>

How to model holidays.

Trait Implementations§

Source§

impl Clone for OptProphetOptions

Source§

fn clone(&self) -> OptProphetOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OptProphetOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OptProphetOptions

Source§

fn default() -> OptProphetOptions

Returns the “default value” for a type. Read more
Source§

impl From<OptProphetOptions> for ProphetOptions

Source§

fn from(value: OptProphetOptions) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V