FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated

ghz 1years ago ⋅ 4147 views

Question

After updating my Numpy and Tensorflow I am getting these kind of warnings. I had already tried [these](https://github.com/scikit-learn/scikit- learn/issues/9673), but nothing works, every suggestion will be appreciated.

FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters
2018-01-19 17:11:38.695932: I C:\tf_jenkins\home\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

Answer

I had tried with these and it had solved same problem for me , just put these at top of your code

import os
os.environ["TF_CPP_MIN_LOG_LEVEL"]="3"