numpy.ma.MaskedArray class is a subclass of ndarray for manipulating numeric arrays with missing data. With Numpy MaskedArray .__ rmod__ , each element in the masked array works with a binary operator, i.e. mod (%). Remember that we can use any type of value in the array, and the value for mod is applied as a parameter in MaskedArray .__ rmod __ ().
Syntax: numpy. MaskedArray .__ rmod__
Return: Return value% self.
Example # 1:
We see that the value we passed through the MaskedArray .__ rmod __ () method is used to perform a mod operation on each element of the array.
[0.0 2.0 2.0 2.0 2.0]
Example # 2:
[[0.0 1.0 0.0 3.0 3.0] [3.0 3.0 3.0 0.0 0.3799999999999999]]
The field of Artificial Intelligence (AI), which can definitely be considered to be the parent field of deep learning, has a rich history going back to 1950. While we will not cover this history in mu...
Python Crash Course is the world's best-selling guide to the Python programming language. This quick and in-depth introduction to Python programming will get you started writing programs, solving prob...
This book serves as a practical guide on how to utilize big data to store, process, and analyze structured data, focusing on three of the most popular Apache projects in the Hadoop ecosystem: Apache S...
This is the first book on synthetic data for deep learning, and its extensive coverage could make this book the standard benchmark for synthetic data for years to come. The book can also serve as an i...