Operating System: OS X 10.10.5
Python Version: 2.7.10 (Anaconda 2.0.1)
Interface Version: 2.15.0.1
Compiler/Toolkit:
Hi,
Just pip upgraded to Pystan 2.15 from 2.9, and now getting the following error:
Traceback (most recent call last):
File “sample_softmax_choice_learning.py”, line 58, in
fit = model_code_obj.sampling(data=model_data, iter=2000, chains=4)
File “//anaconda/lib/python2.7/site-packages/pystan/model.py”, line 725, in sampling
ret_and_samples = _map_parallel(call_sampler_star, call_sampler_args, n_jobs)
File “//anaconda/lib/python2.7/site-packages/pystan/model.py”, line 81, in _map_parallel
map_result = pool.map(function, args)
File “//anaconda/lib/python2.7/multiprocessing/pool.py”, line 251, in map
return self.map_async(func, iterable, chunksize).get()
File “//anaconda/lib/python2.7/multiprocessing/pool.py”, line 567, in get
raise self._value
multiprocessing.pool.MaybeEncodingError: Error sending result: ‘[(0, <stanfit4softmax_choice_learning_2d589e109e324d5ba96b6f064cf3aa6b_787095412542364527.PyStanHolder object at 0x10be3f170>)]’. Reason: ‘IOError(‘bad message length’,)’
The code throwing the error is:
model_code_obj = pystan.StanModel(file=‘softmax_choice_learning.stan.cpp’, model_name=‘softmax_choice_learning’, verbose=True) # Specific to model
fit = model_code_obj.sampling(data=model_data, iter=2000, chains=4)
Any help much appreciated!
Cheers,
Tor