Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions preliz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from preliz.distributions import *
from preliz.distributions.plot import plot
from preliz.distributions.catalog import catalog
from preliz.predictive import *
from preliz.ppls import *
from preliz.unidimensional import *
Expand Down
6 changes: 2 additions & 4 deletions preliz/distributions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,11 @@

all_continuous_multivariate = [Dirichlet, MvNormal]

all_modifiers = [Mixture, Truncated, Censored, Hurdle]

__all__ = ( # noqa: PLE0604
[s.__name__ for s in all_continuous]
+ [s.__name__ for s in all_discrete]
+ [s.__name__ for s in all_continuous_multivariate]
+ [Mixture.__name__]
+ [Truncated.__name__]
+ [Censored.__name__]
+ [Hurdle.__name__]
+ [s.__name__ for s in all_modifiers]
)
2 changes: 2 additions & 0 deletions preliz/distributions/asymmetric_laplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ class AsymmetricLaplace(Continuous):
Symmetry parameter (0 < q < 1).
"""

parametrizations = [("kappa", "mu", "b"), ("q", "mu", "b")]

def __init__(self, kappa=None, mu=None, b=None, q=None):
super().__init__()
self.support = (-pt.inf, pt.inf)
Expand Down
2 changes: 2 additions & 0 deletions preliz/distributions/bernoulli.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ class Bernoulli(Discrete):
Alternative log odds for the probability of success.
"""

parametrizations = [("p",), ("logit_p",)]

def __init__(self, p=None, logit_p=None):
super().__init__()
self.support = (0, 1)
Expand Down
2 changes: 2 additions & 0 deletions preliz/distributions/beta.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ class Beta(Continuous):
concentration > 0
"""

parametrizations = [("alpha", "beta"), ("mu", "sigma"), ("mu", "nu")]

def __init__(self, alpha=None, beta=None, mu=None, sigma=None, nu=None):
super().__init__()
self.support = (0, 1)
Expand Down
Loading
Loading