threshold must be numeric and non-NAN, try sys.maxsize for untruncated representation(吴恩达第四周作业1)

1.报错:

threshold must be numeric and non-NAN, try sys.maxsize for untruncated representation

2.原因:

numpy版本的错误使用

3.解决方法:

导入sys包import sysnp.set_printoptions(threshold=np.nan)np.set_printoptions(threshold=sys.maxsize)替换。

你可能感兴趣的:(tensorflow,深度学习,numpy)