How to filter the specific warning for specific module in python? MWE ERROR: cross_val_score(model, df_Xtrain,ytrain,cv=2,scoring='r2') /usr/local/lib/python3
I am trying to silence the DeprecationWarning with the following method. import warnings warnings.filterwarnings(action='ignore') from sklearn.ensemble import