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 in Machine Learning by akhtar
• 11,250 points
28 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 by MD
• 24,500 points

Related Questions In Machine Learning

0 votes
1 answer
+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
1,172 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,040 points
95 views
0 votes
1 answer

How to add one new column in an existing dataset?

Hi@akhtar, You can do this task using numpy ...READ MORE

answered Apr 17 in Machine Learning by MD
• 24,500 points
18 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
80 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
265 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 in Machine Learning by MD
• 24,500 points
70 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 in Machine Learning by MD
• 24,500 points
44 views