DATA MUNGING
DATA CLEANING PYTHON
MACHINE LEARNING RECIPES
PANDAS CHEATSHEET
ALL TAGS
# How to find the Rank of a Matrix?

# How to find the Rank of a Matrix?

This recipe helps you find the Rank of a Matrix

Finding the Rank of a matrix manually isn"t a time taking process. So have you tried to do it in python.

So this is the recipe on how we can find the Rank of a Matrix.

We have imported numpy which is needed.
```
import numpy as np
```

We have created a matrix by using np.array with different values in it.
```
matrixA = np.array([[1, 2, 3, 23],
[4, 5, 6, 25],
[7, 8, 9, 28],
[10, 11, 12, 41]])
```

We have calculated rank of the matrix by using numpy function np.linalg.matrix_rank and passing the matrix through it.
```
print("The Rank of a Matrix: ", np.linalg.matrix_rank(matrixA))
```

So the output comes as

The Rank of a Matrix: 3

In this project, we are going to talk about H2O and functionality in terms of building Machine Learning models.

Data Science Project in R -Build a machine learning algorithm to predict the future sale prices of homes.

PySpark Project-Get a handle on using Python with Spark through this hands-on data processing spark python tutorial.

In this machine learning resume parser example we use the popular Spacy NLP python library for OCR and text classification.

In this machine learning pricing project, we implement a retail price optimization algorithm using regression trees. This is one of the first steps to building a dynamic pricing model.

In this supervised learning machine learning project, you will predict the availability of a driver in a specific area by using multi step time series analysis.

The goal of this data science project is to build a predictive model and find out the sales of each product at a given Big Mart store.

In this ensemble machine learning project, we will predict what kind of claims an insurance company will get. This is implemented in python using ensemble machine learning algorithms.

In this data science project, you will work with German credit dataset using classification techniques like Decision Tree, Neural Networks etc to classify loan applications using R.

In this deep learning project, we will predict customer churn using Artificial Neural Networks and learn how to model an ANN in R with the keras deep learning package.