DATA MUNGING
DATA CLEANING PYTHON
MACHINE LEARNING RECIPES
PANDAS CHEATSHEET
ALL TAGS
# How to MULTIPLY numerical value to each element of a matrix?

# How to MULTIPLY numerical value to each element of a matrix?

This recipe helps you MULTIPLY numerical value to each element of a matrix

Have you ever tried to perform a matematical opration on a matrix?

So this is the recipe on how we can can multiply something to each element of a matrix.

```
import numpy as np
```

We have only imported numpy which is needed.

We have created a matrix using numpy array.
```
matrixA = np.array([[2, 3, 23],
[5, 6, 25],
[8, 9, 28]])
```

We have created a lambda function to multiply a number with the elements and we have used it on the elements of matrix.
```
multiply_100 = lambda i: i * 100
vectorized_multiply_100 = np.vectorize(multiply_100)
print(vectorized_multiply_100(matrixA))
```

So the output comes as

[[ 200 300 2300] [ 500 600 2500] [ 800 900 2800]]

In this NLP AI application, we build the core conversational engine for a chatbot. We use the popular NLTK text classification library to achieve this.

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.

In this Kmeans clustering machine learning project, you will perform topic modelling in order to group customer reviews based on recurring patterns.

In this project, we are going to work on Deep Learning using H2O to predict Census income.

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

There are different time series forecasting methods to forecast stock price, demand etc. In this machine learning project, you will learn to determine which forecasting method to be used when and how to apply with time series forecasting example.

In this project, we are going to talk about Time Series Forecasting to predict the electricity requirement for a particular house using Prophet.

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

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.

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