infer_time_index#

pymc_marketing.mmm.tvp.infer_time_index(date_series_new, date_series, time_resolution)[source]#

Infer the time-index given a new dataset.

Infers the time-indices by calculating the number of days since the first date in the dataset.

Parameters:
date_series_newpd.Series

New date series.

date_seriespd.Series

Original date series.

time_resolutionint

Resolution of time points in days.

Returns:
np.ndarray

Time index.