lmoroney/dlaicourse

Help me in understanding of code.

mozillah opened this issue · 2 comments

I am working on Course 2 - Part 2 - Lesson 2 - Notebook but I could not understand why we are preprocessing the feature by using these operation in the notebook.if someone can explain me why we are doing it.I will be very thankful to you guys.

for i in range(n_features): **x = feature_map[0, :, :, i] x -= x.mean() x /= x.std () x *= 64 x += 128 x = np.clip(x, 0, 255).astype('uint8')**

Screenshot from 2021-06-17 09-00-58

Are you referring to Week2 of Course 2(Convolutional Neural Networks in TensorFlow)?

Are you referring to Week2 of Course 2(Convolutional Neural Networks in TensorFlow)?

Yes. I am referring to the course 2 of tensor flow specialization where we show filter output of heat map visualization
.