Skip to content

Commit 082d4d5

Browse files
committed
resolving conflicts
1 parent 67d696e commit 082d4d5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

causalpy/pymc_models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,15 +1030,15 @@ def _data_setter(self, X) -> None:
10301030
This method is used internally to register new data for the model for
10311031
prediction.
10321032
"""
1033-
new_no_of_observations = X.shape[0]
1033+
n_obs = X.shape[0]
10341034
with self:
10351035
pm.set_data(
10361036
{
10371037
"X": X,
1038-
"t": np.arange(len(X)),
1039-
"y": np.zeros(new_no_of_observations),
1038+
"t": np.arange(n_obs)[:, None],
1039+
"y": np.zeros(n_obs, 1),
10401040
},
1041-
coords={"obs_ind": np.arange(new_no_of_observations)},
1041+
coords={"obs_ind": np.arange(n_obs)},
10421042
)
10431043

10441044
def score(self, X, y) -> pd.Series:

0 commit comments

Comments
 (0)