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

Getting error 'NoneType' object has no attribute 'network' while running discrete_demo.py , #29

Open
shaktisd opened this issue Apr 4, 2021 · 1 comment

Comments

@shaktisd
Copy link

shaktisd commented Apr 4, 2021

While running discrete_demo.py , Getting following error

  File "\.conda\envs\tf_env\lib\multiprocessing\pool.py", line 771, in get
    raise self._value
AttributeError: 'NoneType' object has no attribute 'network'
@shaktisd shaktisd changed the title Getting error Getting error 'NoneType' object has no attribute 'network' while running discrete_demo.py , Apr 4, 2021
@Assiduous-Sevene
Copy link

I encounter this problem too.

I think this is raised by multithreading environment. Follow MULTITHREADING.md and prepare all the prerequisites.

If you are using windows system and find it difficult to install gslrandom or something else. You can change the code to make it run in single thread. Here is the needed params.

weight_hypers = {"parallel_resampling":False}

then pass the params into DiscreteTimeNetworkHawkesModelSpikeAndSlab while constructing.
like this test_model = DiscreteTimeNetworkHawkesModelSpikeAndSlab(K=K, dt_max=dt_max, network_hypers=network_hypers,weight_hypers=weight_hypers)

Then it will work.

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

2 participants