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
• 25,050 points
66 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
• 56,520 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 13, 2019 in Machine Learning by Tina
452 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
2,339 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,410 points
149 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
106 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
339 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
• 56,520 points
115 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
• 56,520 points
86 views