I use the nightly build of scikit and when I fit estimators I get this warning which is caused py the yeo.yohnson power transformer:
/home/xxxx/anaconda3/envs/MASTER/lib/python3.10/site-packages/numpy/core/_methods.py:235: RuntimeWarning: overflow encountered in multiply
x = um.multiply(x, x, out=x)
Versions: Numpy 1.22.3 Scikit 1.2.dev0
I can not really debug it, because I do not know where excatly the overflow happens so I tried to filter or turn off the warning with all these statements seperately. I use Anaconda and Jupyter Notebook.
1.
import warnings
warnings.filterwarnings("ignore")
warnings.filterwarnings(action='once')
np.seterr(all="ignore")
I tried a few others but nothing worked. HOWEVER except for numpy all other warnings are successfully surpressed. Why is this happening? It seems that numpy is a special case where this does not work?