Skip to content

Commit 4577106

Browse files
committed
add normal test vs_prior
Signed-off-by: Nathaniel <[email protected]>
1 parent 8d6251f commit 4577106

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

causalpy/tests/test_variable_selection_priors.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ def test_create_prior_horseshoe(coords, sample_data):
100100
assert beta.name == "beta"
101101

102102

103+
def test_create_prior_normal(coords, sample_data):
104+
"""Test create_prior for horseshoe."""
105+
vs_prior = VariableSelectionPrior("normal")
106+
107+
with pm.Model(coords=coords) as model:
108+
beta = vs_prior.create_prior(name="beta", n_params=5, dims="features")
109+
110+
assert "beta" in model.named_vars
111+
assert beta.name == "beta"
112+
113+
103114
def test_convenience_function_with_custom_hyperparams(coords):
104115
"""Test convenience function with custom hyperparameters."""
105116
with pm.Model(coords=coords) as model:

0 commit comments

Comments
 (0)