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 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 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.

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

In this machine learning churn project, we implement a churn prediction model in python using ensemble techniques.

Machine Learning Project - Work with KKBOX's Music Recommendation System dataset to build the best music recommendation engine.

In this data science project, you will predict borrowers chance of defaulting on credit loans by building a credit score prediction model.

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

Machine Learning Project in R-Detect fraudulent click traffic for mobile app ads using R data science programming language.

Text data requires special preparation before you can start using it for any machine learning project.In this ML project, you will learn about applying Machine Learning models to create classifiers and learn how to make sense of textual data.