Hi,
I have a question about the coding of the Class statement which appears around 1:29 in the video of “Coding Contrastive Loss”.
Why do we have the following line before initializing attributes?
margin = 0
For your reference, I attach herewith the screenshot of the Video.
I do not see any point in fixing the value of margin within the Class statement, especially when we want to parameterize margin.
How does it affect when we assign another value to the parameter, margin, in the function?
I would appreciate it if anyone can advise me on this issue.
Thanks in advance.
Best regards
Michio
