GithubHelp home page GithubHelp logo

Error in R about prophet HOT 9 CLOSED

facebook avatar facebook commented on April 20, 2024
Error in R

from prophet.

Comments (9)

seanjtaylor avatar seanjtaylor commented on April 20, 2024

Thanks for the report! Can you let me know what version of Windows and R you're using. And also verify that you've installed RTools?

from prophet.

marishadorosh avatar marishadorosh commented on April 20, 2024

I use R version 3.3.2 (2016-10-31) and windows 10 pro 32bit. I installed RTools and I created prophet model.
Now I have another error -"Error in UseMethod("predict") : no applicable method for 'predict' applied to an object of class "character"". My code :
df0=data.frame(ds=(seq.Date(make_date(2017,01,01),make_date(2017,02,01),by = 1)),y = c(1:32))
pr0 =prophet(df0)
make_future_dataframe(pr0,periods = 10)
future0=make_future_dataframe(pr0,periods = 10)
forecast0 <- predict(pr0, future0)

from prophet.

seanjtaylor avatar seanjtaylor commented on April 20, 2024

Hmm this does not replicate for me, can you give me the output of

> class(prr0)
> pr0

Just to see what class was returned?

from prophet.

marishadorosh avatar marishadorosh commented on April 20, 2024

I think it is a model of prophet.
class(pr0) returned: "list" "prophet"
And pr0 returned list of list ($growth, $changepoints and etc.)

from prophet.

bletham avatar bletham commented on April 20, 2024

Does
forecast0 <- prophet:::predict.prophet(pr0, future0)
work?

from prophet.

marishadorosh avatar marishadorosh commented on April 20, 2024

Yes, it works! thank you

from prophet.

seanjtaylor avatar seanjtaylor commented on April 20, 2024

@bletham is this an S3 object issue?

from prophet.

bletham avatar bletham commented on April 20, 2024

@seanjtaylor I'm not sure exactly sure what could have happened here.

@marishadorosh can you paste the output of

library(prophet)
methods(predict)

And could you try restarting R and see if the issue persists? (a lame suggestion I know).

from prophet.

bletham avatar bletham commented on April 20, 2024

Fix confirmed in #94, but post if you have further issues with this!

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.