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

Broken Pipe Error and Fixes? #32

Open
JessVanN opened this issue Sep 4, 2020 · 0 comments
Open

Broken Pipe Error and Fixes? #32

JessVanN opened this issue Sep 4, 2020 · 0 comments

Comments

@JessVanN
Copy link

JessVanN commented Sep 4, 2020

Upon running the tutorial code I was consistently hitting a road block with the multiprocessing package this code requires (Running in Windows with Anaconda Install of Python). I had to make the following changes to successfully run the code.

Error:
__ == "main": #added to code to fix pipe closed error https://discourse.pymc.io/t/multiprocessing-windows-10-brokenpipeerror-errno-32-broken-pipe/2259
gm = GenerativeModel(region, model_data)
File "", line 1
__ == "main": #added to code to fix pipe closed error https://discourse.pymc.io/t/multiprocessing-windows-10-brokenpipeerror-errno-32-broken-pipe/2259
^
SyntaxError: invalid syntax

I changed the following in the tutorial.py:
if name == "main": #added to code to fix pipe closed error https://discourse.pymc.io/t/multiprocessing-windows-10-brokenpipeerror-errno-32-broken-pipe/2259
gm = GenerativeModel(region, model_data)
gm.sample()

With this i was able to run the data using Covid Tracker unaltered source.

Upon still receiving errors after adjusting this to fit local state data instead of Covid Trackers CSV, I came aross a similar error, after playing around with it for a few days I changed in the generative.py file:

def sample(
    self,
    cores=1,    #changed was 4
    chains=2,  #changed was 4

But I am concerned because I don't know what these values affect. I assume cores is processing cores used. I am less sure on chains. Can I change this code without changing the model? Or do you have other suggestions to fix the Broken Pipe (Error 32) Errors

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

1 participant