Comments (5)
The following steps should recreate the issue:
holiday.comps <- unique(m$holidays$holiday)
s <- rowSums(fcst[, holiday.comps])
Does it?
Can you paste the output of str(fcst)
? It seems one of the columns must have gotten non-numeric data in it somehow.
from prophet.
I'm experiencing the same issue, but all my columns are numeric, and all the holiday dates are unique.
My code was working until I simply unified all holidays under a single label ("campaign", since they were all a special kind of past and future campaigns). Given the error thrown and this line from the rowSums help file...
an array of two or more dimensions, containing numeric, complex, integer or logical values, or a numeric data frame.
...it seems like the code isn't set up to handle less than two values of "holiday" (in which case you would simply be passing a vector to rowSums -- thus the error).
from prophet.
Ah, and it also seems that holiday.comps would occasionally come out as a factor (thus interpreted by R as a numeric position index).
from prophet.
@rilut if you install from Github to get the fix in #39 does it work for you?
from prophet.
@bletham Yes, just installed prophet from github and #39 solved my issue 😄
from prophet.
Related Issues (20)
- error in pip install pystan, cython was installed, does anyone know how to solve it?
- Fit params for kwargs
- fbprophet installing error HOT 1
- RuntimeError: Error during optimization: console log output: dyld[10867]: Symbol not found
- pip install guardrails getting this error HOT 2
- Prophet Training Speed: Intel vs Apple M1/M2 HOT 2
- RuntimeError: Error during optimization! HOT 3
- fbprophet install error fix
- BUG - Cannot predict on using logistic -> All-NaN slice encountered HOT 1
- Add interactions to weekly/daily periods for hourly univariate time series data
- [BUG] Zero Division in diagnostics.performance_metrics() causing failed assertion
- Using prophet 1.1.4 (python), is it possible to get "adapt_delta" passed down to stan as part of the "fit" call?
- I am a beginner and I do not know How to solve this Error HOT 5
- Loading META Prophet model gives a tz, datetime error HOT 1
- select_()` was deprecated in dplyr 0.7.0
- How to add some new E-commerce holidays for one country HOT 2
- KeyError: 'k' missing
- prophet uses deprecated numpy np.float/int aliases HOT 1
- Covid One Off Holidays HOT 1
- Do we have alternative library for prophet written by java?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prophet.