Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R freeze during predict #366

Closed
vivshume opened this issue Nov 19, 2017 · 3 comments
Closed

R freeze during predict #366

vivshume opened this issue Nov 19, 2017 · 3 comments

Comments

@vivshume
Copy link

Hi ,
when I am running my Model for 15k+ prediction, My model suddenly stops in middle and it still shows processing. The model never moves forward.
Can you Please let me know the Fix ?
Thanks
Vivek

@TheGeoLawton
Copy link

I wonder if this might be an internal memory issue. R stores large objects in memory, and when the machine fills up, the processing stops. If that's the case, It is not specific to Prophet, it is an issue with R itself.

@bletham
Copy link
Contributor

bletham commented Nov 22, 2017

This is probably related to #215. Basically, in prediction we make a really big matrix that is (number of prediction points)x(uncertainty_samples), where uncertainty_samples here is an input to Prophet() for how many samples to use to estimate trend uncertainty. 15,000x1000 definitely sounds big enough to cause memory issues.

There are a few things you can do to get around this. If you don't care about uncertainty, then set uncertainty_samples=1 when you create the Prophet object. Alternatively, just break your predict dates into chunks of maybe a 1000 and call predict separately on each chunk, and then concat the output dataframes from each call. Does that make sense?

@bletham bletham changed the title Issue with R Package of Prophet R freeze during predict Nov 22, 2017
@bletham
Copy link
Contributor

bletham commented Dec 22, 2017

I'm hoping these suggestions resolved the issue, otherwise feel free to re-open.

@bletham bletham closed this as completed Dec 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants