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
You may want to find out the cause first (most answers here work for specific scenarios - libraries using deprecated features - in this case of NumPy).
In short, something did call:
np.issubdtype(something, float)
instead of:
np.issubdtype(something, np.floating)
This is done in assertions and logic dispatching code, which is rarely written by end users. So - often this will be something done by a library you're using.
So you should find out what caused this warning. You'll use the warnings module, but in an opposite way than in other answers:
import warnings
warnings.filterwarnings('error')
# run rest of your code here
This will give you not just the warning, but an error and stack trace. Then - you're golden:
Traceback (most recent call last):
File (...)
# user code snipped...
File "C:\...\site-packages\vtk\util\numpy_support.py", line 137, in numpy_to_vtk
assert not numpy.issubdtype(z.dtype, complex), \
File "C:\...\site-packages\numpy\core\numerictypes.py", line 422, in issubdtype
FutureWarning, stacklevel=2
FutureWarning: Conversion of the second argument of issubdtype from `complex` to `np.complexfloating` is deprecated.
In future, it will be treated as `np.complex128 == np.dtype(complex).type`.
Here you see that it was VTK this time. Which of course is unlikely to be your specific problem, but after knowing what raises this warning you can do many useful things: