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

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

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

In this R data science project, we will explore wine dataset to assess red wine quality. The objective of this data science project is to explore which chemical properties will influence the quality of red wines.

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.

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

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

The goal of this data science project is to build a predictive model and find out the sales of each product at a given Big Mart store.

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