I was trying to convert a big NumPy array to a string by using np.array_str() or str() but it turns out that the output does not contain all the values of the array.
weight=np.random.rand(5000,500)
print(weight.shape)
print(len(np.array_str(weight)))
print(len(str(weight)))
>>(5000,500)
>>443
>>443
Which is way less than the actual count of digits.
How can I get the complete array as a string? N.B. I want to write the sting in a text file.