Skip to content

Commit

Permalink
Update empirical.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fkiraly committed Sep 10, 2023
1 parent 54a73a1 commit 92a89fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skpro/distributions/empirical.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def _energy_np(spl, x=None, weights=None, assume_sorted=False):

if x is None:
cum_fwd = np.cumsum(weights[:-1])
cum_back = np.cumsum(weights[1::-1])[::-1]
cum_back = np.cumsum(weights[1:][::-1])[::-1]
energy = 2 * np.sum(cum_fwd * cum_back * spl_diff)
else:
spl_diff = np.abs(spl - x)
Expand Down

0 comments on commit 92a89fc

Please sign in to comment.