Skip to content

Commit

Permalink
Update gps_regressor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dirknbr authored May 21, 2024
1 parent a06fd68 commit 525fbb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions causal_curve/gps_regressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _create_point_estimate(self, T):
in the case of a continuous outcome.
"""
return self.gam_results.predict(
np.array([T, self.gps_function(T).mean()]).reshape(1, -1)
np.array([T[0], self.gps_function(T).mean()]).reshape(1, -1)
)

def point_estimate_interval(self, T, ci=0.95):
Expand Down Expand Up @@ -154,5 +154,5 @@ def _create_point_estimate_interval(self, T, width):
associated with a point estimate in the case of a continuous outcome.
"""
return self.gam_results.prediction_intervals(
np.array([T, self.gps_function(T).mean()]).reshape(1, -1), width=width
np.array([T[0], self.gps_function(T).mean()]).reshape(1, -1), width=width
)

0 comments on commit 525fbb1

Please sign in to comment.