Giter Site home page Giter Site logo

predict error about prophet HOT 7 CLOSED

facebook avatar facebook commented on May 3, 2024
predict error

from prophet.

Comments (7)

Ocanamat avatar Ocanamat commented on May 3, 2024

Hi,

Same error here! I have duplicated the issue @ #79 because I had not seen your post before.

In my case the error shows up regardless of wether it is being executed early in an R session or after the session has had some time running.

Could it be a version-related error? This is what I am running

> version
               _                           
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          3.2                         
year           2016                        
month          10                          
day            31                          
svn rev        71607                       
language       R                           
version.string R version 3.3.2 (2016-10-31)
nickname       Sincere Pumpkin Patch     

Regards,

from prophet.

Ocanamat avatar Ocanamat commented on May 3, 2024

Update:

Try the following, it works for me

single_TS_fcast <- prophet:::predict.prophet(m, future)

Regards,

from prophet.

bletham avatar bletham commented on May 3, 2024

This is an odd issue, probably related to #16. When predict is called on an object with type prophet, it should call prophet:::predict.prophet. So the fact that the latter works while the former does not is surprising.

If you could paste the output of the following commands that'd be super helpful to try and figure out what predict it is using.

class(m)
methods(predict)
getS3method("predict", "list")
getS3method("predict", "prophet")

from prophet.

ashawky84 avatar ashawky84 commented on May 3, 2024

from prophet.

bletham avatar bletham commented on May 3, 2024

The issue is that the caret package has a predict.list method which was being used for prophet, since it's class was first list and then prophet. I was able to replicate the issue by first loading the caret package. ecc0682 fixes this, could you install from Github and make sure everything is resolved for you?

devtools::install_github('facebookincubator/prophet', subdir='R')

from prophet.

bletham avatar bletham commented on May 3, 2024

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

from prophet.

ashawky84 avatar ashawky84 commented on May 3, 2024

Thank you it works now.

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.