Skip to content

Commit

Permalink
gaussian_kde method call fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanchk committed Feb 10, 2022
1 parent 15b846c commit cce13b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions luminaire/model/window_density.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ def _distance_function(self, data=None, called_for=None, baseline=None):
if called_for == "training":
distance = []
for i in range(0, len(data) - 1):
q = stats.kde.gaussian_kde(data[i])
p = stats.kde.gaussian_kde(data[i + 1])
q = stats.gaussian_kde(data[i])
p = stats.gaussian_kde(data[i + 1])

ts_min = min(np.min(data[i]), np.min(data[i + 1]))
ts_max = max(np.max(data[i]), np.max(data[i + 1]))
Expand All @@ -178,8 +178,8 @@ def _distance_function(self, data=None, called_for=None, baseline=None):

# If called for scoring, Kl divergence is performed between the scoring window and the baseline
elif called_for == "scoring":
q = stats.kde.gaussian_kde(baseline)
p = stats.kde.gaussian_kde(data)
q = stats.gaussian_kde(baseline)
p = stats.gaussian_kde(data)

ts_min = min(np.min(baseline), np.min(data))
ts_max = max(np.max(baseline), np.max(data))
Expand Down

0 comments on commit cce13b7

Please sign in to comment.