threshold must be numeric and non-NAN, try sys.maxsize for untruncated representation(吴恩达第四周作业1)
1.报错:thresholdmustbenumericandnon-NAN,trysys.maxsizeforuntruncatedrepresentation2.原因:numpy版本的错误使用3.解决方法:导入sys包importsys将np.set_printoptions(threshold=np.nan)用np.set_printoptions(threshold=sys.maxsize)