Skip to content

Commit

Permalink
add random seed
Browse files Browse the repository at this point in the history
  • Loading branch information
juanitorduz committed Mar 8, 2024
1 parent d5331be commit e229469
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/mmm/test_delayed_saturated_mmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def mmm_with_fourier_features() -> DelayedSaturatedMMM:
def mmm_fitted(
mmm: DelayedSaturatedMMM, toy_X: pd.DataFrame, toy_y: pd.Series
) -> DelayedSaturatedMMM:
mmm.fit(X=toy_X, y=toy_y, target_accept=0.8, draws=3, chains=2)
mmm.fit(X=toy_X, y=toy_y, target_accept=0.8, draws=3, chains=2, random_seed=rng)
return mmm


Expand All @@ -122,7 +122,7 @@ def mmm_fitted_with_fourier_features(
toy_y: pd.Series,
) -> DelayedSaturatedMMM:
mmm_with_fourier_features.fit(
X=toy_X, y=toy_y, target_accept=0.8, draws=3, chains=2
X=toy_X, y=toy_y, target_accept=0.8, draws=3, chains=2, random_seed=rng
)
return mmm_with_fourier_features

Expand Down

0 comments on commit e229469

Please sign in to comment.