In this class I presented some ideas on the first homework assignment and left time for supervised work.
I promised to upload an example notebook with some hints on Part 2. Here goes: homework_1_example.html . This notebook also includes some things that may be helpful on Part 1 (b) and Part 3 (b). Below are some other notes from what was discussed on class.
This course covers a lot of topics in quick succession, so my policy is to grade homework very leniently. It is enough to provide a correct answer and a brief justification to get full marks. Lacking a correct answer, I highly value honesty and evidence of critical thinking. You can email me with questions at christopher.gadzinski@uni.lu.
Remember that with the subtlety that this derivative doesn't exist when (Why not? Think about the graph of )
Because of this subtlety, to solve the minimization problem in Problem b, you can't apply the usual playbook of solving an equation . You can still make use of derivatives, but you need to think a little more!
You don't need to carefully justify your answer. It is enough to say where the function is minimized and give some intuition on how you got to this answer. (Remember the answer is slightly different in the cases of even and odd ; ideally you should discuss both.) You can also check the example notebook for a typical graph of the function
This is a harder differentiation problem. I included it because differentiating the softmax function happens to be important in deep learning.
Hint 1: Remember that the derivative of the logarithm of is So, for any function follows from the chain rule.
Hint 2: If you encounter an expression like remember that this is the same as where on the right-hand side I've replaced the index of the sum with
Hint 3: Note that If you like, you can write this as where is defined to be zero when when indices and are not equal and otherwise. This is called the Kronecker delta.