Skip to content

Commit 642f651

Browse files
committed
revert a change which seems no longer required
1 parent a28c5da commit 642f651

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

causalpy/skl_models.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from functools import partial
1717

1818
import numpy as np
19-
import xarray as xr
2019
from scipy.optimize import fmin_slsqp
2120
from sklearn.base import RegressorMixin
2221
from sklearn.linear_model._base import LinearModel
@@ -29,9 +28,6 @@ class ScikitLearnAdaptor:
2928

3029
def calculate_impact(self, y_true, y_pred):
3130
"""Calculate the causal impact of the intervention."""
32-
if isinstance(y_true, np.ndarray):
33-
y_true = xr.DataArray(y_true, dims=["obs_ind"])
34-
3531
return y_true - y_pred
3632

3733
def calculate_cumulative_impact(self, impact):

0 commit comments

Comments
 (0)