Skip to content

Problem 15 1D Convolution: Fix convolution inconsistencies#7

Open
spatters wants to merge 1 commit intosrush:mainfrom
spatters:main
Open

Problem 15 1D Convolution: Fix convolution inconsistencies#7
spatters wants to merge 1 commit intosrush:mainfrom
spatters:main

Conversation

@spatters
Copy link

There are two problems with the convolution definition in problem 15

  1. j index should run from 0 to K-1. I have corrected this.
  2. The function f calls np.convolve which flips y before applying the convolution. So the function behavior is inconsistent with indexing in the convolution definition. Can either change the definition or change f to use np.correlate which does not flip. I have done the latter as I think not flipping is the standard in deep learning.

… f to call np.correlate rather than np.convolve as convolve fips y before applying which is not the standard definition in deep learning. In the current question the indexing for y and the f definition are inconsistent, so either need to change the function as I have done, or flip the y indices in the formula.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant