Skip to content

Commit 1670af4

Browse files
committed
adding fix
Signed-off-by: Nathaniel <[email protected]>
1 parent db0522e commit 1670af4

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

causalpy/variable_selection_priors.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,6 @@ def create_prior(
375375
>>> import pymc as pm
376376
>>> import pandas as pd
377377
>>> from variable_selection_priors import VariableSelectionPrior
378-
>>> X_train = pd.DataFrame{'x': [1, 2, 3, 4]}
379378
>>> vs_prior = VariableSelectionPrior("spike_and_slab")
380379
>>> with pm.Model() as model:
381380
... beta = vs_prior.create_prior("beta", n_params=4, dims="features")
@@ -568,14 +567,6 @@ def create_variable_selection_prior(
568567
PyMC variable
569568
The coefficient vector with specified prior
570569
571-
Example
572-
-------
573-
>>> with pm.Model() as model:
574-
... X = pm.Data("X", X_train)
575-
... beta = create_variable_selection_prior(
576-
... "spike_and_slab", "beta", n_params=X_train.shape[1], dims="features"
577-
... )
578-
... mu = pm.math.dot(X, beta)
579570
"""
580571
vs_prior = VariableSelectionPrior(prior_type, hyperparams)
581572
return vs_prior.create_prior(name, n_params, dims, X)

0 commit comments

Comments
 (0)