Don't Print NumPy Arrays! Use Lovely-NumPy Instead.
www.blog.dailydoseofds.com
We often print raw numpy arrays during debugging. But this approach is not very useful. This is because printing does not convey much information about the data it holds, especially when the array is large. Instead, use 𝐥𝐨𝐯𝐞𝐥𝐲-𝐧𝐮𝐦𝐩𝐲. Rather than viewing raw arrays, it prints a summary of the array. This includes its shape, distribution, mean, standard deviation, etc.
Don't Print NumPy Arrays! Use Lovely-NumPy Instead.
Don't Print NumPy Arrays! Use Lovely-NumPy…
Don't Print NumPy Arrays! Use Lovely-NumPy Instead.
We often print raw numpy arrays during debugging. But this approach is not very useful. This is because printing does not convey much information about the data it holds, especially when the array is large. Instead, use 𝐥𝐨𝐯𝐞𝐥𝐲-𝐧𝐮𝐦𝐩𝐲. Rather than viewing raw arrays, it prints a summary of the array. This includes its shape, distribution, mean, standard deviation, etc.