mirror of
https://github.com/GokuMohandas/Made-With-ML.git
synced 2026-03-09 07:12:37 -05:00
Foundations --> CNN Doubts #35
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shashankvasisht on GitHub (Jun 7, 2022).
Hi, Thank you for such excellent lessons!!!
I had 3 doubts in the lecture, can you please explain them:
When we pad the one-hot sequences to max number of seq length, why do we not put 1 at the 0th index? (so as to make it to correspond to < pad > token) Why is it currently all zeros ?
When we're loading the weights in the interpretableCNN model, why dont we get the weight mis-match error ? (as we have dropped the FC layer part and we're also not using strict=False )
My sns heatmap / conv_output have all the values 1 . It does not resemble yours...Can you help me with this?
@GokuMohandas commented on GitHub (Jun 8, 2022):
Tokenizerclass), unless it's configured otherwise. But you made me realize that we should pass in the index topad_sequencesinstead of assuming it's 0. These kinds of mismatches lead to silent bugs! I'll push this change towards the end of this month.__init__function forInterpretableCNN, it has all the layers. The only difference is that we're returning an earlier artifact in theforwardfunction.pad_sequencesfunction, we force PAD to be zeros.