人工智能训练
CZU_zzjj
我写写写写
展开
-
How to fix “KeyError: ‘acc‘“
**之所以会报错,是因为keras库老版本中的参数不是accuracy,而是acc,将参数accuracy替换为acc,**please try# plot accuracy evolution vs epochs fig = plt.figure( ) ax = fig.add_subplot( 111 ) ax.plot( hist.history[ 'accuracy' ], linewidth = 3. ) ax.plot( hist.history[ 'val_accura原创 2021-05-16 09:49:29 · 151 阅读 · 0 评论 -
人工智能能训练时,遇到module ‘tensorflow‘ has no attribute ‘get_default_graph‘问题的处理方法
module ‘tensorflow’ has no attribute 'get_default_graph’当使用keras和tensorflow做深度学习的时候,python3.7报了这个错误如何不降低版本,能成功进行训练Please try:# library to create sequential modelsfrom tensorflow.keras.models import Sequential# support for used layersfrom tensorflo原创 2021-05-16 09:41:06 · 222 阅读 · 0 评论