Home
last modified time | relevance | path

Searched refs:comp_shape (Results 1 – 5 of 5) sorted by relevance

/dports/math/py-pymc3/pymc-3.11.4/pymc3/tests/
H A Dtest_mixture.py134 comp_shape = nd + (ncomp,)
135 test_mus = np.random.randn(*comp_shape)
136 test_taus = np.random.gamma(1, 1, size=comp_shape)
142 mus = Normal("mus", shape=comp_shape)
143 taus = Gamma("taus", alpha=1, beta=1, shape=comp_shape)
145 mixture0 = NormalMixture("m", w=ws, mu=mus, tau=taus, shape=nd, comp_shape=comp_shape)
147 "obs", w=ws, mu=mus, tau=taus, shape=nd, comp_shape=comp_shape, observed=observed
151 mus = Normal("mus", shape=comp_shape)
168 mus = Normal("mus", shape=comp_shape)
183 np.broadcast(np.empty(comp_shape), observed)
[all …]
/dports/math/py-pymc3/pymc-3.11.4/pymc3/distributions/
H A Dmixture.py263 comp_shape = tuple(comp_dists.shape)
266 (self_shape is not None and val_shape == self_shape) or val_shape == comp_shape
275 elif comp_shape and val_shape[-len(comp_shape) :] == comp_shape:
277 ndim = len(comp_shape)
630 def __init__(self, w, mu, sigma=None, tau=None, sd=None, comp_shape=(), *args, **kwargs):
638 super().__init__(w, Normal.dist(mu, sigma=sigma, shape=comp_shape), *args, **kwargs)
692 comp_shape = to_tuple(comp_dists.shape)
693 self.shape = comp_shape[:mixture_axis] + comp_shape[mixture_axis + 1 :]
/dports/graphics/opendx/dx-4.4.4/src/exec/dxmods/
H A Dcat.h64 int comp_shape[30]; member
H A D_cat_util.c352 &cp->comp_rank, cp->comp_shape, &cp->count, &cp->cat_type ) ) in _dxf_cat_FindCompType()
H A Dcategorize.c842 cp->unique_array = DXNewArrayV( cp->comp_type, CATEGORY_REAL, cp->comp_rank, cp->comp_shape ); in Categorize()