After updating my Numpy and Tensorflow I am getting these kind of warnings. I had already tried these, but nothing works, every suggestion will be
None of the above worked in my case and I did not want to downgrade any package.
There is a straightforward solution on Github, just suppress the warning:
import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore",category=FutureWarning)
import numpy as np
import tensorflow as tf
import h5py as h5py
and then import whatever package causes the error (numpy, tensorflow, h5py) within the scope of the with statement