facebook / facebook/prophet

Rcpp error when using prophet::prophet() instead of library(prophet)

未關閉
#285 7 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
bug help wanted
主要語言
Python
星號
20.4k
分支
4.6k
平均合併
19 小時 52 分鐘
30 天內合併 PR
1

描述

When I don't use `library(prophet)` and instead use the fully-qualified `prophet::prophet`, I get the following in my console:

> ds <- seq(as.Date('2005-04-01'), as.Date('2005-09-03'), by='day')
x <- (1:length(ds))/length(ds)
y <- rnorm(length(ds), x * (1 - x) + 0.5, 0.1)
prophet::prophet(data.frame(ds = ds, y = y), yearly.seasonality = FALSE)

>Error in .Object$initialize(...) :
could not find function "cpp_object_initializer"
failed to create the optimizer; optimization not done
Error in matrix(m$params[[name]], nrow = n.iteration) :
'data' must be of a vector type, was 'NULL'

I'm using the latest revision from master (via `devtools::install_github('facebookincubator/prophet', subdir='R')`)

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。