机器学习实验出错总结

实验14报AttributeError: module 'time' has no attribute 'clock'

将time.clock改为time.perf_counter()

实验18报AttributeError: module 'tensorflow' has no attribute 'GraphDef'

import tensorflow._api.v2.compat.v1 as tf
tf.disable_v2_behavior()

                  大部分报module 'tensorflow' has no attribute 'XXX‘好像都可以用这个来解决

 实验18报AttributeError: 'FreeTypeFont' object has no attribute 'getsize'

将Pillow 将为 9.5 版本    pip install Pillow==9.5

实验16 Cannot find reference 'advanced_activations' in '__init__.py' 

from keras.src.layers import LeakyReLU

 

posted @ 2024-05-06 00:28  辞楠  阅读(20)  评论(0)    收藏  举报