Skip to content

Commit

Permalink
changed N to 4000
Browse files Browse the repository at this point in the history
  • Loading branch information
ColtAllen committed Jul 14, 2023
1 parent 4d5b95f commit 3b7f58e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pymc_marketing/clv/models/pareto_nbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def _population_distributions(

# This is the shape if using fit_method="map"
if self.fit_result.dims == {"chain": 1, "draw": 1}:
shape_kwargs = {"shape": 10000}
shape_kwargs = {"shape": 4000}
else:
shape_kwargs = {}

Check warning on line 638 in pymc_marketing/clv/models/pareto_nbd.py

View check run for this annotation

Codecov / codecov/patch

pymc_marketing/clv/models/pareto_nbd.py#L638

Added line #L638 was not covered by tests

Expand Down
2 changes: 1 addition & 1 deletion tests/clv/models/test_pareto_nbd.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def test_dropout_purchase_distributions(self) -> None:
assert isinstance(customer_dropout, xarray.DataArray)
assert isinstance(customer_purchase_rate, xarray.DataArray)

N = 10000
N = 4000
lam = pm.Gamma.dist(self.r_true, self.alpha_true, size=N)
mu = pm.Gamma.dist(self.s_true, self.beta_true, size=N)
rtol = 0.05
Expand Down

0 comments on commit 3b7f58e

Please sign in to comment.