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

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

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

In [1]:

```
## How to SUBTRACT numerical value to each electment of a matrix
def Kickstarter_Example_16():
print()
print(format('How to subtract something to each electment of a matrix',
'*^72'))
# Load library
import numpy as np
# Create two vectors
matrixA = np.array([[2, 3, 23],
[5, 6, 25],
[8, 9, 28]])
# Create a function that adds 100 to something
add_100 = lambda i: i - 15
# Create a vectorized function
vectorized_add_100 = np.vectorize(add_100)
# Apply function to all elements in matrix
print(); print(vectorized_add_100(matrixA))
Kickstarter_Example_16()
```

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

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 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 project, we are going to work on Deep Learning using H2O to predict Census income.

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

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

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

This project analyzes a dataset containing ecommerce product reviews. The goal is to use machine learning models to perform sentiment analysis on product reviews and rank them based on relevance. Reviews play a key role in product recommendation systems.

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