How to perform convolution operation between two image pixels

0 votes

Hi Guys,

I am trying create a CNN model. This CNN model works on convolution process. So I want to know, how convolution works between two array?

May 9, 2020 in Machine Learning by akhtar
• 38,210 points
186 views

1 answer to this question.

0 votes

Hi@akhtar,

This convolution function is a part of your numpy. So you have to import your numpy module. And also create two arrays as shown below.

import numpy as np
arr = np.array([0,0,0,1,1,1,0,0,0])
arr2=np.array([10,-10]) 

To perform convolution you have to pass these two array as follows.

np.convolve(arr,arr1)
answered May 9, 2020 by MD
• 95,320 points

Related Questions In Machine Learning

0 votes
1 answer
0 votes
1 answer

How to compare expected and predicted values?

The predict() function returns a plain numpy ...READ MORE

answered Jul 14, 2019 in Machine Learning by Tina
4,657 views
+1 vote
1 answer

how to analysis the heatmap to find the correlation

Hi @Vikas, there are 5 simple steps ...READ MORE

answered Sep 30, 2019 in Machine Learning by Vishal
6,310 views
0 votes
0 answers

How to know if a problem is solvable by machine learning?

I have recently started learning the machine. ...READ MORE

Nov 21, 2019 in Machine Learning by Hannah
• 18,570 points
283 views
+1 vote
2 answers

View onto a numpy array?

 just index it as you normally would. ...READ MORE

answered Oct 18, 2018 in Python by roberto
228 views
0 votes
1 answer
0 votes
1 answer

Printing a large numpy array

numpy.set_printoptions(threshold='nan') READ MORE

answered Jul 20, 2018 in Python by Nietzsche's daemon
• 4,260 points
814 views
0 votes
1 answer

How to save machine learning model?

Hi@akhtar, To save your Machine Learning model, you ...READ MORE

answered Apr 13, 2020 in Machine Learning by MD
• 95,320 points
329 views
0 votes
1 answer

How to import one Machine Learning model?

Hi@akhtar, To import one pre-created ML model, you ...READ MORE

answered Apr 13, 2020 in Machine Learning by MD
• 95,320 points
202 views