Skip to content

Commit

Permalink
update docstrings in model
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrine committed Jan 14, 2017
1 parent 79ac934 commit 57dbe47
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions pymc3/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,8 @@ def Var(self, name, dist, data=None, total_size=None):
data : array_like (optional)
If data is provided, the variable is observed. If None,
the variable is unobserved.
total_size : scalar
upscales logp of variable with :math:`coef = total_size/var.shape[0]`
Returns
-------
Expand Down Expand Up @@ -728,7 +730,10 @@ def __init__(self, type=None, owner=None, index=None, name=None,
owner : theano owner (optional)
name : str
distribution : Distribution
model : Model"""
model : Model
total_size : scalar Tensor (optional)
needed for upscaling logp
"""
if type is None:
type = distribution.type
super(FreeRV, self).__init__(type, owner, index, name)
Expand Down Expand Up @@ -811,6 +816,8 @@ def __init__(self, type=None, owner=None, index=None, name=None, data=None,
name : str
distribution : Distribution
model : Model
total_size : scalar Tensor (optional)
needed for upscaling logp
"""
from .distributions import TensorType
if type is None:
Expand Down Expand Up @@ -859,6 +866,8 @@ def __init__(self, name, data, distribution, model, total_size=None):
name : str
distribution : Distribution
model : Model
total_size : scalar Tensor (optional)
needed for upscaling logp
"""
self.name = name
self.data = {name: as_tensor(data, name, model, distribution)
Expand Down Expand Up @@ -924,10 +933,12 @@ def __init__(self, type=None, owner=None, index=None, name=None,
type : theano type (optional)
owner : theano owner (optional)
name : str
distribution : Distribution
model : Model"""
model : Model
total_size : scalar Tensor (optional)
needed for upscaling logp
"""
if type is None:
type = distribution.type
super(TransformedRV, self).__init__(type, owner, index, name)
Expand Down

0 comments on commit 57dbe47

Please sign in to comment.