numpy.MaskedArray.atleast_3d() is used to transform input data into masked arrays with at least three dimensions.
numpy.MaskedArray.atleast_3d() , 1D and 2D arrays are converted to 3D arrays, while larger input data is preserved.
arys: [array_like] One or more input arrays.
Return: [ndarray] An array, or list of arrays, each with
arr.ndim & gt; = 3
Code # 1:
Input array: [[[2.0e + 08 3.0e-05]] [[-4.5e +01 2.0e + 05]]] 3D Masked array: [[[- 3e-05]] [[-45.0 200000.0]]] Output masked array: [[[- 3e-05]] [[-45.0 200000.0 ]]]
Grokking Deep Learning teaches you to build deep learning neural networks from scratch! In his immersive style, deep learning expert Andrew Trask shows you the hidden science so you can uncover every ...
Mark Lutz is the global leader in Python training, author of the oldest and best-selling Python texts, and a pioneer in the Python community since 1992.
Mark Lutz is the author of the found...
Learning Correct Cryptography by Example. The interconnected world of the current era has drastically changed everything, including banking, entertainment, and even statecraft. Despite difference...
Learning to code is tremendous fun as you can get instant results, no matter how much more you have to learn. In fact, it’s such fun creating games and programs that it feels effortless once you’r...