Skip to content

Commit

Permalink
Move distributions to more consistent places
Browse files Browse the repository at this point in the history
ZeroInflated to mixture.py
DiracDelta to distribution.py
  • Loading branch information
tomicapretto authored and ricardoV94 committed May 10, 2023
1 parent 83e3545 commit 970db18
Show file tree
Hide file tree
Showing 11 changed files with 579 additions and 561 deletions.
4 changes: 0 additions & 4 deletions docs/source/api/distributions/discrete.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Discrete
BetaBinomial
Binomial
Categorical
DiracDelta
DiscreteUniform
DiscreteWeibull
Geometric
Expand All @@ -19,6 +18,3 @@ Discrete
OrderedLogistic
OrderedProbit
Poisson
ZeroInflatedBinomial
ZeroInflatedNegativeBinomial
ZeroInflatedPoisson
3 changes: 3 additions & 0 deletions docs/source/api/distributions/mixture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ Mixture

Mixture
NormalMixture
ZeroInflatedBinomial
ZeroInflatedNegativeBinomial
ZeroInflatedPoisson
1 change: 1 addition & 0 deletions docs/source/api/distributions/utilities.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Distribution utilities
Discrete
Distribution
SymbolicRandomVariable
DiracDelta
13 changes: 8 additions & 5 deletions pymc/distributions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
BetaBinomial,
Binomial,
Categorical,
DiracDelta,
DiscreteUniform,
DiscreteWeibull,
Geometric,
Expand All @@ -64,19 +63,23 @@
OrderedLogistic,
OrderedProbit,
Poisson,
ZeroInflatedBinomial,
ZeroInflatedNegativeBinomial,
ZeroInflatedPoisson,
)
from pymc.distributions.distribution import (
Continuous,
CustomDist,
DensityDist,
DiracDelta,
Discrete,
Distribution,
SymbolicRandomVariable,
)
from pymc.distributions.mixture import Mixture, NormalMixture
from pymc.distributions.mixture import (
Mixture,
NormalMixture,
ZeroInflatedBinomial,
ZeroInflatedNegativeBinomial,
ZeroInflatedPoisson,
)
from pymc.distributions.multivariate import (
CAR,
Dirichlet,
Expand Down
Loading

0 comments on commit 970db18

Please sign in to comment.