Skip to content

Commit cce13b7

Browse files
committed
gaussian_kde method call fixed
1 parent 15b846c commit cce13b7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

luminaire/model/window_density.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ def _distance_function(self, data=None, called_for=None, baseline=None):
157157
if called_for == "training":
158158
distance = []
159159
for i in range(0, len(data) - 1):
160-
q = stats.kde.gaussian_kde(data[i])
161-
p = stats.kde.gaussian_kde(data[i + 1])
160+
q = stats.gaussian_kde(data[i])
161+
p = stats.gaussian_kde(data[i + 1])
162162

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

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

184184
ts_min = min(np.min(baseline), np.min(data))
185185
ts_max = max(np.max(baseline), np.max(data))

0 commit comments

Comments
 (0)