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,260 points
794 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,460 points

Related Questions In Machine Learning

0 votes
1 answer

How to perform regression algorithm on a textual data(IMDB reviews)?

You can use either word2vec or tf-idf ...READ MORE

answered Mar 30, 2022 in Machine Learning by Dev
• 6,000 points
543 views
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
13,268 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
10,545 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
1,032 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
1,739 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,460 points
861 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,460 points
784 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP