在TensorFlow框架下实现DBN网络 - zhuzhishi2042的博客 - CSDN博客 https://blog.csdn.net/zhuzhishi2042/article/details/72902245/#commentsedit
针对运行错误除了此链接的问题外,还存在以下问题:
错误:**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
**解决方案:**pip install h5py==2.8.0rc1,安装 h5py,用于模型的保存和载入
AttributeError:filepath, _ = urllib.urlretrieve(SOURCE_URL + filename, filepath)
module ‘urllib’ has no attribute ‘urlretrieve’
**解决方案:**python3中使用urlretrieve时应该加.request,即:
urllib.urlretrieve改为urllib.request.urlretrieve即可解决
警告:Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
https://blog.csdn.net/hq86937375/article/details/79696023