mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-05-25 22:26:34 +00:00
Merge remote-tracking branch 'upstream/master' into minor-fixing
This commit is contained in:
commit
be87004df9
5 changed files with 7 additions and 6 deletions
2
.github/workflows/build-and-test.yml
vendored
2
.github/workflows/build-and-test.yml
vendored
|
|
@ -77,7 +77,7 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
remotes::install_deps(pkgdir = "R/", dependencies = NA)
|
||||
remotes::install_cran("rcmdcheck")
|
||||
remotes::install_cran(c("rcmdcheck", "knitr", "testthat", "readr", "rmarkdown"))
|
||||
install.packages(c("cmdstanr", "posterior"), repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
|
||||
shell: Rscript {0}
|
||||
- name: Check
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ regressor_coefficients <- function(m){
|
|||
regr_mus <- unlist(lapply(m$extra_regressors, function (x) x$mu))
|
||||
regr_stds <- unlist(lapply(m$extra_regressors, function(x) x$std))
|
||||
|
||||
beta_indices <- which(m$train.component.cols[, regr_names] == 1, arr.ind = TRUE)[, "row"]
|
||||
beta_indices <- which(m$train.component.cols[, regr_names, drop = FALSE] == 1, arr.ind = TRUE)[, "row"]
|
||||
betas <- m$params$beta[, beta_indices, drop = FALSE]
|
||||
# If regressor is additive, multiply by the scale factor to put coefficients on the original training data scale.
|
||||
y_scale_indicator <- matrix(
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||

|
||||
[](https://pypi.python.org/pypi/prophet)
|
||||
[](https://anaconda.org/conda-forge/prophet/)
|
||||
[](https://CRAN.R-project.org/package=prophet)
|
||||
|
||||
Prophet is a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust to missing data and shifts in the trend, and typically handles outliers well.
|
||||
|
||||
|
|
|
|||
|
|
@ -205,14 +205,14 @@ GEM
|
|||
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||
rb-inotify (~> 0.9, >= 0.9.10)
|
||||
mercenary (0.3.6)
|
||||
mini_portile2 (2.5.0)
|
||||
mini_portile2 (2.5.1)
|
||||
minima (2.5.1)
|
||||
jekyll (>= 3.5, < 5.0)
|
||||
jekyll-feed (~> 0.9)
|
||||
jekyll-seo-tag (~> 2.1)
|
||||
minitest (5.14.3)
|
||||
multipart-post (2.1.1)
|
||||
nokogiri (1.11.1)
|
||||
nokogiri (1.11.4)
|
||||
mini_portile2 (~> 2.5.0)
|
||||
racc (~> 1.4)
|
||||
octokit (4.20.0)
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ class Prophet(object):
|
|||
|
||||
Parameters
|
||||
----------
|
||||
growth: String 'linear' or 'logistic' to specify a linear or logistic
|
||||
trend.
|
||||
growth: String 'linear', 'logistic' or 'flat' to specify a linear, logistic or
|
||||
flat trend.
|
||||
changepoints: List of dates at which to include potential changepoints. If
|
||||
not specified, potential changepoints are selected automatically.
|
||||
n_changepoints: Number of potential changepoints to include. Not used
|
||||
|
|
|
|||
Loading…
Reference in a new issue