GithubHelp home page GithubHelp logo

Comments (5)

bletham avatar bletham commented on July 27, 2024

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.

rschoenbeck avatar rschoenbeck commented on July 27, 2024

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.

rschoenbeck avatar rschoenbeck commented on July 27, 2024

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.

bletham avatar bletham commented on July 27, 2024

@rilut if you install from Github to get the fix in #39 does it work for you?

from prophet.

luthfianto avatar luthfianto commented on July 27, 2024

@bletham Yes, just installed prophet from github and #39 solved my issue 😄

from prophet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.