Skip to content

Commit

Permalink
replace scipy.stats.kde with scipy.stats
Browse files Browse the repository at this point in the history
scipy.stats.kde is deprecated
  • Loading branch information
quaquel committed May 19, 2022
1 parent e8fbf6f commit b5a9ca9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ema_workbench/analysis/plotting_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import scipy.stats.kde as kde
import scipy.stats as stats
import seaborn as sns

from ..em_framework.outcomes import AbstractOutcome, ScalarOutcome
Expand Down Expand Up @@ -481,7 +481,7 @@ def determine_kde(data, size_kde=1000, ymin=None, ymax=None):
kde_y = np.linspace(ymin, ymax, size_kde)

try:
kde_x = kde.gaussian_kde(data)
kde_x = stats.gaussian_kde(data)
kde_x = kde_x.evaluate(kde_y)
# grid = GridSearchCV(KernelDensity(kernel='gaussian'),
# {'bandwidth': np.linspace(ymin, ymax, 20)},
Expand Down Expand Up @@ -899,4 +899,4 @@ def get_color(index):
is higher than the legnth of the color list
"""
corrected_index = index % len(COLOR_LIST)
return COLOR_LIST[corrected_index]
return COLOR_LIST[corrected_index]
1 change: 1 addition & 0 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* timeseries outcomes via pandas dataframe
* remove threshold kwarg from prim
* add OrdinalParameter class
* properly use ABC instead of raising NotImplementedError



Expand Down

0 comments on commit b5a9ca9

Please sign in to comment.