Skip to content

Commit bcd9cac

Browse files
committed
TODOs
1 parent d12dd0b commit bcd9cac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pymc_extras/distributions/discrete.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ class GrassiaIIGeometricRV(RandomVariable):
410410
def __call__(self, r, alpha, size=None, **kwargs):
411411
return super().__call__(r, alpha, size=size, **kwargs)
412412

413+
# TODO: Param will need to be added for dot product of time-varying covariates
413414
@classmethod
414415
def rng_fn(cls, rng, r, alpha, size):
415416
if size is None:
@@ -430,7 +431,7 @@ def sim_data(lam):
430431
p = np.where(
431432
lam < 0.001,
432433
lam, # For small lambda, p ≈ lambda
433-
1 - np.exp(-lam) # Standard formula for larger lambda
434+
1 - np.exp(-lam) # TODO: covariate param added here as 1 - np.exp(-lam * np.expcovar_dot)
434435
)
435436

436437
# Ensure p is in valid range for geometric distribution
@@ -447,7 +448,7 @@ def sim_data(lam):
447448

448449
g2g = GrassiaIIGeometricRV()
449450

450-
451+
# TODO: Add time-varying covariates. May simply replace the t-value , but is a continuous parameter
451452
class GrassiaIIGeometric(Discrete):
452453
r"""Grassia(II)-Geometric distribution.
453454

0 commit comments

Comments
 (0)