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)
- Prophet not working on Google Cloud Run HOT 1
- While adding regressor receiving error message: TypeError: ufunc 'isnan' not supported for the input types HOT 1
- Prophet not compatible with Pandas 2.0
- If there is no data in holidays
- How to get rid of the time dependance?
- Optimizing the training result
- Alpine - install prophet
- Prophet 1.1.5 saving and loading model leads to incorrect historical data points & possibly prediction HOT 2
- forecasting growth example dataset looking very different from documentation HOT 1
- Prophet add.regressor not picking up regressor significance
- Cannot install package sentence_trasnformers
- New to Prophet HOT 3
- Not getting what I expect from a Cross Validation using monthly data and cutoffs
- prophet.serialize FutureWarning: The behavior of Timestamp.utcfromtimestamp is deprecated...
- Seeking clarification on setting custom holiday prior scale HOT 2
- Schedule retrain an existing prophet model HOT 6
- New Forecasts on existing data different than original forecast.
- Problem with turtle andy pygame
- python: can't open file '/home/chris/cupp.py': [Errno 2] No such file or directory
- cant install fbprophet using pip install fbprophet HOT 1
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.