pub struct ProphetOptions {Show 17 fields
pub growth: GrowthType,
pub changepoints: Option<Vec<TimestampSeconds>>,
pub n_changepoints: u32,
pub changepoint_range: PositiveFloat,
pub yearly_seasonality: SeasonalityOption,
pub weekly_seasonality: SeasonalityOption,
pub daily_seasonality: SeasonalityOption,
pub seasonality_mode: FeatureMode,
pub seasonality_prior_scale: PositiveFloat,
pub changepoint_prior_scale: PositiveFloat,
pub estimation: EstimationMode,
pub interval_width: IntervalWidth,
pub uncertainty_samples: u32,
pub scaling: Scaling,
pub holidays: HashMap<String, Holiday>,
pub holidays_prior_scale: PositiveFloat,
pub holidays_mode: Option<FeatureMode>,
}Expand description
Options for Prophet, after applying defaults.
Fields§
§growth: GrowthTypeThe type of growth (trend) to use.
Defaults to GrowthType::Linear.
changepoints: Option<Vec<TimestampSeconds>>An optional list of changepoints.
If not provided, changepoints will be automatically selected.
n_changepoints: u32The 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.
Defaults to 25.
changepoint_range: PositiveFloatThe proportion of the history to consider for potential changepoints.
Not used if changepoints is provided.
Defaults to 0.8 for the first 80% of the data.
yearly_seasonality: SeasonalityOptionHow to fit yearly seasonality.
Defaults to SeasonalityOption::Auto.
weekly_seasonality: SeasonalityOptionHow to fit weekly seasonality.
Defaults to SeasonalityOption::Auto.
daily_seasonality: SeasonalityOptionHow to fit daily seasonality.
Defaults to SeasonalityOption::Auto.
seasonality_mode: FeatureModeHow to model seasonality.
Defaults to FeatureMode::Additive.
seasonality_prior_scale: PositiveFloatThe 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.
Defaults to 10.0.
changepoint_prior_scale: PositiveFloatThe 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.
Defaults to 0.05.
estimation: EstimationModeHow to perform parameter estimation.
When EstimationMode::Mle or EstimationMode::Map
are used then no MCMC samples are taken.
Defaults to EstimationMode::Mle.
interval_width: IntervalWidthThe 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%).
Defaults to 0.8 for 80% intervals.
uncertainty_samples: u32The number of simulated draws used to estimate uncertainty intervals.
Setting this value to 0 will disable uncertainty
estimation and speed up the calculation.
Defaults to 1000.
scaling: ScalingHow to scale the data prior to fitting the model.
Defaults to Scaling::AbsMax.
holidays: HashMap<String, Holiday>Holidays to include in the model.
holidays_prior_scale: PositiveFloatPrior scale for holidays.
This parameter modulates the strength of the holiday components model, unless overridden in each individual holiday’s input.
Defaults to 100.0.
holidays_mode: Option<FeatureMode>How to model holidays.
Defaults to the same value as ProphetOptions::seasonality_mode.
Trait Implementations§
Source§impl Clone for ProphetOptions
impl Clone for ProphetOptions
Source§fn clone(&self) -> ProphetOptions
fn clone(&self) -> ProphetOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProphetOptions
impl Debug for ProphetOptions
Source§impl Default for ProphetOptions
impl Default for ProphetOptions
Source§impl From<OptProphetOptions> for ProphetOptions
impl From<OptProphetOptions> for ProphetOptions
Source§fn from(value: OptProphetOptions) -> Self
fn from(value: OptProphetOptions) -> Self
Auto Trait Implementations§
impl Freeze for ProphetOptions
impl RefUnwindSafe for ProphetOptions
impl Send for ProphetOptions
impl Sync for ProphetOptions
impl Unpin for ProphetOptions
impl UnwindSafe for ProphetOptions
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
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<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.