DATA MUNGING
DATA CLEANING PYTHON
MACHINE LEARNING RECIPES
PANDAS CHEATSHEET
ALL TAGS
# How to calculate dot product of two vectors?

# How to calculate dot product of two vectors?

This recipe helps you calculate dot product of two vectors

Do you find calculating dot product is easy? Have to tried to find it using python.

So this is the recipe on how we can calculate dot product of two vectors.

```
import numpy as np
```

We have only imported numpy which is needed.

We have created two array of which we will find vector product.
```
vectorA = np.array([1,2,3])
vectorB = np.array([4,5,6])
```

We will find dot product by two methods. One by using np.dot function and passing the vectors in it and also by using @ which is used to finding dot product.
```
print(np.dot(vectorA, vectorB))
print(vectorA @ vectorB)
```

So the output comes as

32 32

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.

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.

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.

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.

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

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 machine learning project, you will develop a machine learning model to accurately forecast inventory demand based on historical sales data.

In this project, we are going to work on Sequence to Sequence Prediction using IMDB Movie Review Dataset using Keras in Python.

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.

This data science in python project predicts if a loan should be given to an applicant or not. We predict if the customer is eligible for loan based on several factors like credit score and past history.