Skip to content

Commit

Permalink
update seaborn=0.11.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaD5 committed Apr 14, 2021
1 parent d46eea8 commit 5744fdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tabulate==0.8.7
matplotlib>=3.2.2
dtreeviz==1.0
shap==0.36.0
seaborn==0.10.1
seaborn==0.11.1
wordcloud==1.8.1
category_encoders==2.2.2
optuna==2.7.0
6 changes: 3 additions & 3 deletions supervised/preprocessing/eda.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def compute(X, y, eda_path):
if PreprocessingUtils.get_type(y) in ("categorical"):
sns.countplot(y, color=BLUE)
else:
sns.distplot(y, color=BLUE)
sns.displot(y, color=BLUE)
plt.title("Target class distribution")
plt.tight_layout(pad=2.0)
plt.savefig(EDA.plot_path(eda_path, "target"))
Expand All @@ -97,7 +97,7 @@ def compute(X, y, eda_path):

plt.figure(figsize=(5, 5))
chart = sns.countplot(
X[col], order=X[col].value_counts().iloc[:10].index, color=BLUE
x=X[col], order=X[col].value_counts().iloc[:10].index, color=BLUE
)
chart.set_xticklabels(chart.get_xticklabels(), rotation=90)
plt.title(f"{col} class distribution")
Expand All @@ -106,7 +106,7 @@ def compute(X, y, eda_path):
elif PreprocessingUtils.get_type(X[col]) in ("continous", "discrete"):

plt.figure(figsize=(5, 5))
sns.distplot(X[col], color=BLUE)
sns.displot(X[col], color=BLUE)
plt.title(f"{col} value distribution")
plt.tight_layout(pad=2.0)

Expand Down

0 comments on commit 5744fdf

Please sign in to comment.