src.model.model
src.model.model.
logger
det_dot
Dot product for Theano.
The theano dot product and NUTS sampler don’t work with large matrices. Copyright (c) 2021. Ritchie Vink source: https://www.ritchievink.com/blog/2018/10/09/ … build-facebooks-prophet-in-pymc3-bayesian-time-series-analyis-with-generalized-additive-models/
np.array
tt.vector
dot product of the two.
fourier_series
Calculate fourier representation of t for a period and order.
Copyright (c) 2021. Ritchie Vink Based on source: https://www.ritchievink.com/blog/2018/10/09/ … build-facebooks-prophet-in-pymc3-bayesian-time-series-analyis-with-generalized-additive-models/
range
range to be used as input variable
float
period to use for the fourier orders
int
order of fourier series
matrix fourier representation of t
seasonality_model
Create seasonality model with fourier series.
pm.var
PYMC3 variable
polynomial
Calculate polynomial representation of t for an order.
order of polynomial
matrix polynomial representation of t
drift_model
Polynomal drift/trend function for additive model.
order of polynomal.
create_model
Create a PYMC3 GAM model with a trend/drift and a seasonal/yearly component.
timestamps
input series of scaled timestamps
observed values
scaled period of the timestamps to take for the fourier component (a year)
order of the fourier component
order of the polynomial component
PYMC3
model
context
src.model.format
src.plot