Last active
June 25, 2023 02:32
-
-
Save BexTuychiev/c5bc29a7beceef818f48f9334bbf1344 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from sklearn.preprocessing import QuantileTransformer | |
qt = QuantileTransformer().fit(crazy_distributions) | |
crazy_feature_names = ["f18", "f31", "f61"] | |
crazy_distributions = pd.DataFrame(qt.transform(crazy_distributions), columns=crazy_feature_names) | |
fig, axes = plt.subplots(1, 3, figsize=(20, 6)) | |
for ax, f_name in zip(axes.flatten(), crazy_feature_names): | |
sns.kdeplot(crazy_distributions[f_name], ax=ax, color="#E50914") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment