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 machine learning project, you will uncover the predictive value in an uncertain world by using various artificial intelligence, machine learning, advanced regression and feature transformation techniques.

In this data science project in R, we are going to talk about subjective segmentation which is a clustering technique to find out product bundles in sales data.

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.

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

In this human activity recognition project, we use multiclass classification machine learning techniques to analyse fitness dataset from a smartphone tracker.

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.

Deep Learning Project- Learn to apply deep learning paradigm to forecast univariate time series data.

In this machine learning and IoT project, we are going to test out the experimental data using various predictive models and train the models and break the energy usage.

Music Recommendation Project using Machine Learning - Use the KKBox dataset to predict the chances of a user listening to a song again after their very first noticeable listening event.

Use the Adult Income dataset to predict whether income exceeds 50K yr based on
census data.