pub struct Data {}Expand description
Data for the Prophet model.
Fields§
§T: i32Number of time periods.
y: Vec<f64>Time series, length n.
t: Vec<f64>Time, length n.
cap: Vec<f64>Capacities for logistic trend, length n.
S: i32Number of changepoints.
t_change: Vec<f64>Times of trend changepoints, length s.
trend_indicator: TrendIndicatorThe type of trend to use.
K: i32Number of regressors. Must be greater than or equal to 1.
s_a: Vec<i32>Indicator of additive features, length k.
s_m: Vec<i32>Indicator of multiplicative features, length k.
X: Vec<f64>Regressors, shape (n, k).
This is stored as a Vec<f64> rather than a nested Vec<Vec<f64>>
because passing such a struct by reference is tricky in Rust, since
it can’t be dereferenced to a &[&[f64]] (which would be ideal).
However, when serialized to JSON, it is converted to a nested array of arrays, which is what cmdstan expects.
sigmas: Vec<PositiveFloat>Scale on seasonality prior.
tau: PositiveFloatScale on changepoints prior. Must be greater than 0.
Trait Implementations§
impl StructuralPartialEq for Data
Auto Trait Implementations§
impl Freeze for Data
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnsafeUnpin for Data
impl UnwindSafe for Data
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.