Theano performance

I am running test below on the Windows 7 machine:

import numpy as np
import pymc3 as pm

with pm.Model() as model:
    mu = pm.Normal('mu', mu=0, sd=1)
    obs = pm.Normal('obs', mu=mu, sd=1, observed=np.random.randn(100))

    trace = pm.sample(1000, tune=500)

For some reason test never finishes.

A bit more information would be greatly appreciated - do you see any output? what is your set up and python enviroment?

Below is an environment I am running script:

Windows 7

Anaconda 5.1

Python 3.6.4

Spyder 3.2.8

I attached file with the list of packages

I appreciate your help

Alex

conda_list.txt (8.03 KB)

What do you mean never finishes? Do you see any output print out at all.

I forgot to include output:

runfile(‘C:/Temp/Python/Python Scripts/test_pymc3.py’, wdir=‘C:/Temp/Python/Python Scripts’)

D:\Anaconda3\envs\theano\lib\site-packages\h5py_init_.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.

from ._conv import register_converters as _register_converters

Auto-assigning NUTS sampler…

Initializing NUTS using jitter+adapt_diag…

D:\Anaconda3\envs\theano\lib\site-packages\pymc3\model.py:384: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.

if not np.issubdtype(var.dtype, float):

Multiprocess sampling (2 chains in 2 jobs)

NUTS: [mu]

Alex

I think this is related: NUT sampler stuck under windows with njobs>1

Thank you very much!

It works for njobs=1.

Do you know of this is Windows/Python/theano/sample code problem?

Alex

It is possible a Windows problem, as running the file from terminal under macOS and Linux does not have any problem.