Skip to content

Commit

Permalink
Added outline to docs; moved theory text from PyMC2
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Fonnesbeck committed Apr 29, 2013
1 parent ef52277 commit 72c719e
Show file tree
Hide file tree
Showing 18 changed files with 437 additions and 6 deletions.
Empty file added docs/INSTALL.rst
Empty file.
Empty file added docs/README.rst
Empty file.
Binary file added docs/_images/envelope.pdf
Binary file not shown.
Binary file added docs/_images/envelope.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_images/reject.pdf
Binary file not shown.
Binary file added docs/_images/reject.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added docs/conclusion.rst
Empty file.
Empty file added docs/distributions.rst
Empty file.
Empty file added docs/extending.rst
Empty file.
18 changes: 15 additions & 3 deletions docs/index.rst
Expand Up @@ -3,14 +3,26 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to PyMC's documentation!
================================
PyMC User's Guide
=================

Contents:

.. toctree::
:maxdepth: 2

:numbered:

README
INSTALL
tutorial
modelbuilding
modelfitting
modelchecking
extending
distributions
conclusion
theory
references


Indices and tables
Expand Down
Empty file added docs/modelbuilding.rst
Empty file.
Empty file added docs/modelchecking.rst
Empty file.
Empty file added docs/modelfitting.rst
Empty file.
Empty file added docs/references.rst
Empty file.
417 changes: 417 additions & 0 deletions docs/theory.rst

Large diffs are not rendered by default.

Empty file added docs/tutorial.rst
Empty file.
1 change: 1 addition & 0 deletions pymc/distributions/meta.py
@@ -1,3 +1,4 @@
# TODO Is this still relevant? If so, please document.
from dist_math import *

def Normal_Summary(u, tau):
Expand Down
7 changes: 4 additions & 3 deletions pymc/types.py
@@ -1,8 +1,8 @@

bool_types = set(['int8'])

int_types = set(['int8',
'int16' ,
'int16' ,
'int32',
'int64',
'uint8',
Expand All @@ -16,8 +16,9 @@
continuous_types = float_types | complex_types
discrete_types = bool_types | int_types

default_type = {'discrete' : 'int64',
default_type = {'discrete' : 'int64',
'continuous': 'float64'}

def typefilter(vars, types):
# Returns variables of type `types` from `vars`
return filter(lambda v: v.dtype in types, vars)

0 comments on commit 72c719e

Please sign in to comment.