I encounter the following warning message when I run the following code:
disp = plot_confusion_matrix(
xgb_clf, X_test, y_test,
cmap='Blues', values_format='d',
display_labels=['Default', 'Fully-Paid']
)
disp = plot_roc_curve(xgb_clf, X_test, y_test)
The warning message are as follows
C:\Users\***\anaconda3\lib\site-packages\sklearn\utils\deprecation.py:87: FutureWarning: Function plot_confusion_matrix is deprecated; Function `plot_confusion_matrix` is deprecated in 1.0 and will be removed in 1.2. Use one of the class methods: ConfusionMatrixDisplay.from_predictions or ConfusionMatrixDisplay.from_estimator.
warnings.warn(msg, category=FutureWarning)
C:\Users\***\anaconda3\lib\site-packages\sklearn\utils\deprecation.py:87: FutureWarning: Function plot_roc_curve is deprecated; Function :func:`plot_roc_curve` is deprecated in 1.0 and will be removed in 1.2. Use one of the class methods: :meth:`sklearn.metric.RocCurveDisplay.from_predictions` or :meth:`sklearn.metric.RocCurveDisplay.from_estimator`.
warnings.warn(msg, category=FutureWarning)
What to do step by step to address the warning message?