Leci37 / TensorFlow-stocks-prediction-Machine-learning-RealTime

Predict operation stocks points (buy-sell) with past technical patterns, and powerful machine-learning libraries such as: Sklearn.RandomForest , Sklearn.GradientBoosting, XGBoost, Google TensorFlow and Google TensorFlow LSTM..Real time Twitter:
241 stars 75 forks source link

distplot is a deprecated and will be removed in seaborn v0.14.0. #15

Closed TheHarold closed 10 months ago

TheHarold commented 1 year ago

When running get_technical_indicators.py the below warning appears. It's fine for now but we'll have to update this at somepoint in the future.

C:\Users\admin\projects\stocks-prediction-Machine-learning-RealTime-telegram\Utils\Utils_plotter.py:311: UserWarning:

distplot is a deprecated function and will be removed in seaborn v0.14.0.

Please adapt your code to use either displot (a figure-level function with similar flexibility) or histplot (an axes-level function for histograms).

For a guide to updating your code to use the new functions, please see https://gist.github.com/mwaskom/de44147ed2974457ad6372750bbe5751

sns.distplot(df[ele_B][(df[main_label] == 0)], bins=50, label="Nothing", color="#FFCC33") # amarillo huevo C:\Users\admin\projects\stocks-prediction-Machine-learning-RealTime-telegram\Utils\Utils_plotter.py:313: UserWarning:

distplot is a deprecated function and will be removed in seaborn v0.14.0.

Please adapt your code to use either displot (a figure-level function with similar flexibility) or histplot (an axes-level function for histograms).

For a guide to updating your code to use the new functions, please see https://gist.github.com/mwaskom/de44147ed2974457ad6372750bbe5751

sns.distplot(df[ele_B][(df[main_label] == 100)], bins=50, label="Point of Buy", color="#00CC00") # verde C:\Users\admin\projects\stocks-prediction-Machine-learning-RealTime-telegram\Utils\Utils_plotter.py:315: UserWarning:

distplot is a deprecated function and will be removed in seaborn v0.14.0.

Please adapt your code to use either displot (a figure-level function with similar flexibility) or histplot (an axes-level function for histograms).

For a guide to updating your code to use the new functions, please see https://gist.github.com/mwaskom/de44147ed2974457ad6372750bbe5751

sns.distplot(df[ele_B][(df[main_label] == -100)], bins=50, label="Point of Sale ", color="#FF00FF") # Magenta