facebook / prophet

Tool for producing high quality forecasts for time series data that has multiple seasonality with linear or non-linear growth.
https://facebook.github.io/prophet
MIT License
18.28k stars 4.51k forks source link

Is it possible to use prophet in a R script and Run it on AWS ? #736

Closed SaswatMahapatra closed 5 years ago

SaswatMahapatra commented 5 years ago

Hi Ben,

I am planning to implement porphet forecasting model for a particular forecasting model. Can I use it in a R script where I am fetching and writing data from mongo using mongolite package in R , and run this script on AWS as a daily scheduler on daily basis ?

And one more query, is it possible to add another external regressor into prophet like xreg, in ARIMA ?

bletham commented 5 years ago

Yes, running this as an R script on AWS shouldn't be an issue as long as the instance has the necessary packages installed.

As for extra regressors, yes, they can be added as described here: https://facebook.github.io/prophet/docs/seasonality,_holiday_effects,_and_regressors.html#additional-regressors

SaswatMahapatra commented 5 years ago

Thanks for the reply , Can I use it on production level , as I’m trying to integrate it on my product. Is there any issue regarding that ?

On Wed, 21 Nov 2018 at 11:30 PM, Ben Letham notifications@github.com wrote:

Yes, running this as an R script on AWS shouldn't be an issue as long as the instance has the necessary packages installed.

As for extra regressors, yes, they can be added as described here: https://facebook.github.io/prophet/docs/seasonality,_holiday_effects,_and_regressors.html#additional-regressors

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/facebook/prophet/issues/736#issuecomment-440758713, or mute the thread https://github.com/notifications/unsubscribe-auth/AqX9RyjkQbCM2b9bxqZqUOGl2EWWsK6rks5uxZS5gaJpZM4YdG0R .

bletham commented 5 years ago

I can't think of any special considerations, are there any issues you're particularly worried about?

SaswatMahapatra commented 5 years ago

Like is there any copyright issues or something I should be aware of ?

On Thu, 22 Nov 2018 at 12:51 AM, Ben Letham notifications@github.com wrote:

I can't think of any special considerations, are there any issues you're particularly worried about?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/facebook/prophet/issues/736#issuecomment-440781496, or mute the thread https://github.com/notifications/unsubscribe-auth/AqX9RxtY9g57APGdlnU2rbY9qLYT7D0Bks5uxafSgaJpZM4YdG0R .

bletham commented 5 years ago

I don't have any expertise on legal issues, but the license and patent grants are pretty short and readable here: https://github.com/facebook/prophet/blob/master/LICENSE https://github.com/facebook/prophet/blob/master/PATENTS

bletham commented 5 years ago

Note that it is a standard 3-clause BSD license, which you can find many resources for understanding, e.g. https://opensource.org/licenses/BSD-3-Clause

SaswatMahapatra commented 5 years ago

Sure thanks for your time Ben.

On Thu, Nov 22, 2018 at 1:02 AM Ben Letham notifications@github.com wrote:

Note that it is a standard 3-clause BSD license, which you can find many resources for understanding, e.g. https://opensource.org/licenses/BSD-3-Clause

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/facebook/prophet/issues/736#issuecomment-440784297, or mute the thread https://github.com/notifications/unsubscribe-auth/AqX9R7WZeghuzxXn1C6tuVufD_BdHqewks5uxapAgaJpZM4YdG0R .

SaswatMahapatra commented 5 years ago

Hi Ben, Im trying to install prophet on CentOS 7
Im getting these error.

** package ‘rstan’ successfully unpacked and MD5 sums checked

** libs

Error in .shlib_internal(args) : C++14 standard requested but CXX14 is not defined

ERROR: dependency ‘rstan’ is not available for package ‘prophet’

The downloaded source packages are in ‘/tmp/RtmpNoczSf/downloaded_packages’

Can you help me here.

bletham commented 5 years ago

It looks like you need to set the C++ toolchain to use C++14, in order to install rstan. See the "C++ toolchain configuration" section here: https://github.com/stan-dev/rstan/wiki/Installing-RStan-on-Linux

This is a new requirement as one of the recent rstan releases. I expect we will also need to make this change in the Prophet Makevars (in R/src/), so I'm going to flag this as a bug until we have a chance to update those and make sure it's working with the latest rstan.

bletham commented 5 years ago

Actually I'll open a new issue for it.