MACHINE LEARNING RECIPES
DATA CLEANING PYTHON
DATA MUNGING
PANDAS CHEATSHEET
ALL TAGS
# Subtract the mean of each row of a matrix?

# Subtract the mean of each row of a matrix?

Subtract the mean of each row of a matrix

So this recipe is a short example on how to subtract the mean of each row of a matrix. Let's get started.

```
import numpy as np
```

Let's pause and look at these imports. Numpy is generally helpful in data manipulation while working with arrays. It also helps in performing mathematical operation.

```
a = np.random.rand(3, 4)
print(a)
```

We have created a random array of size 3x4.

```
b = a - a.mean(axis=1, keepdims=True)
print(b)
```

First, we find mean across each row and then subtract it from the original array. Finally, we are printing down the new array.

Once we run the above code snippet, we will see:

Scroll down to the ipython file below to visualize the output.

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

In this data science project, we will predict the credit card fraud in the transactional dataset using some of the predictive models.

In this machine learning project, we will use binary leaf images and extracted features, including shape, margin, and texture to accurately identify plant species using different benchmark classification techniques.

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.

Use the Amazon Reviews/Ratings dataset of 2 Million records to build a recommender system using memory-based collaborative filtering in Python.

Data Science Project - Build a recommendation engine which will predict the products to be purchased by an Instacart consumer again.

Build your own image similarity application using Python to search and find images of products that are similar to any given product. You will implement the K-Nearest Neighbor algorithm to find products with maximum similarity.

We all at some point in time wished to create our own language as a child! But what if certain words always cooccur with another in a corpus? Thus you can make your own model which will understand which word goes with which one, which words are often coming together etc. This all can be done by building a custom embeddings model which we create in this project

In this project you will use Python to implement various machine learning methods( RNN, LSTM, GRU) for fake news classification.

In this time series project, you will build a model to predict the stock prices and identify the best time series forecasting model that gives reliable and authentic results for decision making.