Skip to content

Commit e8cf6e9

Browse files
committed
Changing
1 parent d83664f commit e8cf6e9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

causalpy/pymc_models.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,9 +1118,7 @@ def build_model(
11181118
f"Shape mismatch: X_values_for_pymc has {X_values_for_pymc.shape[1]} columns, but "
11191119
f"{len(self._exog_var_names)} names in self._exog_var_names ({self._exog_var_names})."
11201120
)
1121-
X_data = pm.MutableData(
1122-
"X", X_values_for_pymc, dims=["obs_ind", "coeffs"]
1123-
)
1121+
X_data = pm.Data("X", X_values_for_pymc, dims=["obs_ind", "coeffs"])
11241122
beta = pm.Normal("beta", mu=0, sigma=10, dims="coeffs")
11251123
mu_ = mu_ + pm.math.dot(X_data, beta)
11261124

@@ -1129,7 +1127,7 @@ def build_model(
11291127

11301128
# Likelihood
11311129
sigma = pm.HalfNormal("sigma", sigma=self.prior_sigma)
1132-
y_data = pm.MutableData("y", y.flatten(), dims="obs_ind")
1130+
y_data = pm.Data("y", y.flatten(), dims="obs_ind")
11331131
pm.Normal("y_hat", mu=mu, sigma=sigma, observed=y_data, dims="obs_ind")
11341132

11351133
def fit(

0 commit comments

Comments
 (0)