Skip to content

Commit a4b72f7

Browse files
committed
merged with main branch
2 parents 5aa5850 + f075747 commit a4b72f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+3302
-4425
lines changed

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.pyc
2+
*.so
3+
build/*
4+
dist/*
5+
pymc.egg-info/
6+
docs/jss/
7+
docs/pdf/
8+
docs/INSTALL.tex
9+
docs/README.tex
10+
docs/UserGuide.pdf
11+
docs/database.tex
12+
develop
13+
testresults/*
14+
sphinxdoc/build/*
15+
*.tmproj

buildegg

Lines changed: 0 additions & 4 deletions
This file was deleted.

buildosx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/sh
2+
export MACOSX_DEPLOYMENT_TARGET=10.6
3+
export CFLAGS="-arch i386 -arch x86_64"
4+
export FFLAGS="-m32 -m64"
5+
export LDFLAGS="-Wall -undefined dynamic_lookup -bundle -arch i386 -arch x86_64"
6+
export PYTHONPATH="/Library/Python/2.6/site-packages/"
27
rm -rf build
38
python setup.py config_fc --fcompiler gnu95 build
4-
sudo python setupegg.py develop
9+
#sudo python setup.py install
10+
sudo python setupegg.py develop

docs/distributions-module.tex

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -485,36 +485,6 @@ \section{Continuous distributions}
485485

486486
\end{description}
487487
\end{funcdesc}
488-
\index{hypergeometric\_like() (in module pymc.distributions)}
489-
490-
\begin{funcdesc}{hypergeometric\_like}{x, n, m, N}
491-
Hypergeometric log-likelihood. Discrete probability distribution that
492-
describes the number of successes in a sequence of draws from a finite
493-
population without replacement.
494-
\begin{gather}
495-
\begin{split}f(x \mid n, m, N) = \frac{\binom{m}{x}\binom{N-m}{n-x}}{\binom{N}{n}}\end{split}\notag
496-
\end{gather}\begin{description}
497-
\item[Parameters] \leavevmode\begin{itemize}
498-
\item {}
499-
\emph{x} : {[}int{]} Number of successes in a sample drawn from a population.
500-
501-
\item {}
502-
\emph{n} : {[}int{]} Size of sample drawn from the population.
503-
504-
\item {}
505-
\emph{m} : {[}int{]} Number of successes in the population.
506-
507-
\item {}
508-
\emph{N} : {[}int{]} Total number of units in the population.
509-
510-
\end{itemize}
511-
512-
\end{description}
513-
514-
\begin{notice}{note}{Note:}
515-
$E(X) = \frac{n n}{N}$
516-
\end{notice}
517-
\end{funcdesc}
518488
\index{inverse\_gamma\_like() (in module pymc.distributions)}
519489

520490
\hypertarget{pymc.distributions.inverse_gamma_like}{}\begin{funcdesc}{inverse\_gamma\_like}{x, alpha, beta}

docs/jss/pymc.bib

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,4 +497,8 @@ @Manual{mcmcpack
497497
year = {2009},
498498
note = {\proglang{R}~package version~1.0-4},
499499
url = {http://CRAN.R-project.org/package=MCMCpack},
500+
<<<<<<< HEAD
500501
}
502+
=======
503+
}
504+
>>>>>>> gppaper

pymc-requirements

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pymc
2+
numpy>=1.3
3+
matplotlib>=0.9
4+
scipy>=0.8
5+
nose==0.11
6+
pydot

pymc/Container.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ def file_items(container, iterable):
175175
if isinstance(item, Variable):
176176
container.variables.add(item)
177177
if isinstance(item, StochasticBase):
178-
if item.observed:
179-
container.observed_stochastics.add(item)
180-
else:
178+
if item.observed or not getattr(item, 'mask', None) is None:
179+
container.observed_stochastics.add(item)
180+
if not item.observed:
181181
container.stochastics.add(item)
182182
elif isinstance(item, DeterministicBase):
183183
container.deterministics.add(item)

pymc/InstantiationDecorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def random(parent_name, ...):
146146
"""
147147

148148
def instantiate_p(__func__):
149-
value, parents = _extract(__func__, kwds, keys, 'Stochastic')
149+
value, parents = _extract(__func__, kwds, keys, 'Stochastic')
150150
return __class__(value=value, parents=parents, **kwds)
151151

152152
keys = ['logp','random','rseed']

0 commit comments

Comments
 (0)