我已将numpy更新为1.14.0。我用的是Windows 10。我试图运行我的代码,但我得到了一个错误:
AttributeError: module 'numpy' has no attribute 'square'
这是我的进口货:
%matplotlib inline
import matplotlib.pyplot as plt
import tensorflow as tf
import numpy as np
from sklearn.metrics import confusion_matrix
import math
我删除了numpy.py,然后更新了我的numpy,它成功了!
相关问题 更多 >
编程相关推荐