AttributeError: module 'numpy' has no attribute 'int'.
np.int
の箇所を
int
にすればおk