MACHINE LEARNING RECIPES
DATA CLEANING PYTHON
DATA MUNGING
PANDAS CHEATSHEET
ALL TAGS
# How to find common values between two arrays using numpy

This recipe helps you find common values between two arrays using numpy

Many times we are dealing with mulitple arrays. Sometimes there is need of finding the intersection between two for working on common elements further.

So this recipe is a short example on how to find common values between two arrays. Let's get started.

```
import numpy as np
```

Let's pause and look at these imports. Numpy is generally used for working with arrays and performing mathematical operations in domain of linear algebra, fourier transform and matrices.

```
x = np.array([0, 1, 2, 3, 4])
y = np.array([0, 2, 4])
```

We have simply setup two random arrays.

```
print(np.intersect1d(x, y))
```

intersect1d basically helps in finding common elements of 1-D array.

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

[0 2 4]

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.

In this deep learning project, you will learn how to build your custom OCR (optical character recognition) from scratch by using Google Tesseract and YOLO to read the text from any images.

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.

Classification ML Project for Beginners - A Hands-On Approach to Implementing Different Types of Classification Algorithms in Machine Learning for Predictive Modelling

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.

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.

In this Deep Learning Project on Image Segmentation Python, you will learn how to implement the Mask R-CNN model for early fire detection.

Use the Zillow dataset to follow a test-driven approach and build a regression machine learning model to predict the price of the house based on other variables.

Data Science Project in R-Predict the sales for each department using historical markdown data from the Walmart dataset containing data of 45 Walmart stores.

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