Using np.set in Python 3_ Printoptions (threshold = NP. Nan) raises an error resolution

Source: [Wu Enda’s after class programming assignment] course 4 – convolutional neural network – fourth week assignment – face recognition
about np.set_ printoptions()

np.set_ Printing options (threshold = sys. Maxsize)
I executed it in vscode Python 3, with the following error:
valueerror: threshold must be non Nan, try sys. Maxsize for untrusted representation

According to the prompt:
Import sys library first Import sys Import

Then change the original sentence to NP. Set_ printoptions(threshold = sys.maxsize)

Reference article: https://blog.csdn.net/qq_ 45068783/article/details/109405850

Read More: