lmoroney / dlaicourse

Notebooks for learning deep learning
5.66k stars 5.38k forks source link

Help me in understanding of code. #188

Open mozillah opened 3 years ago

mozillah commented 3 years ago

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

smita-09 commented 3 years ago

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

mozillah commented 3 years ago

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 .