Could not generate output statistics for pobservationKorea_1980_0
Could not generate output statistics for pobservationKorea_1980_2
Could not generate output statistics for pobservationKorea_1980_5
Could not generate output statistics for latency
Could not generate output statistics for pobservationKorea_1980_3
Could not generate output statistics for pobservationKorea_1980_4
Could not generate output statistics for pobservationKorea_1980_1
Could not generate output statistics for gammaC
Could not generate output statistics for pobservationKorea_1980_6
Could not generate output statistics for Serop1980
Could not generate output statistics for gammaA
Could not generate output statistics for PK2
Could not generate output statistics for predict
and then
File "/Library/Python/2.7/site-packages/pymc-2.3.2-py2.7-macosx-10.9-intel.egg/pymc/Model.py", line 415, in write_csv
shape = values['mean'].shape
TypeError: 'NoneType' object has no attribute '__getitem__'
What am I making wrong?
Thanks for all your helpThanks for any help
Whit
It is going to be quite hard for an outsider to debug these 1000+ lines of code, especially without the input files to make them run. That said, this error comes up when something goes wrong in the stats() function (code here: https://github.com/pymc-devs/pymc/blob/2.3/pymc/database/base.py#L197 ), and the only time that happens to me is when I try to calculate MC error without taking enough samples:
In [1]: import pymc as pm
In [2]: x = pm.Uniform('x',0,1)
In [3]: pm.MCMC([x]).sample(10)
[-----------------100%-----------------] 10 of 10 complete in 0.0 sec
In [4]: x.stats()
Could not generate output statistics for x
So maybe taking more samples on line 17 of MCMC_provaKorea.py will make your problem go away.
Good luck!
--Abie
Abraham D. Flaxman
Assistant Professor
Institute for Health Metrics and Evaluation | University of Washington
2301 5th Avenue, Suite 600 | Seattle, WA 98121| USA
Tel: +1-206-897-2802 | Mobile: +1-412-726-0401 | Fax: +1-206-897-2899 UW | Campus Mailbox: 358210
ab...@uw.edu | http://healthmetricsandevaluation.org| http://healthyalgorithms.com
--
You received this message because you are subscribed to the Google Groups "PyMC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
pymc+uns...@googlegroups.com.
To post to this group, send email to py...@googlegroups.com.
Visit this group at http://groups.google.com/group/pymc.
For more options, visit https://groups.google.com/d/optout.