Hi Fati,
This version is much better. :-)
Your complexity calculation may be inflated. Admittedly, I don't know Lua, but I don't understand how this function scored a complexity of 13:
function layer:updateGradInput(input, gradOutput)
self.gradInput:resizeAs(gradOutput):copy(gradOutput)
self.clipped:resizeAs(input):clamp(input, -self.max_grad, self.max_grad)
self.gradInput:add(-self.strength, self.clipped)
return self.gradInput
end
Also, IMO you should consider adding a fuller description to the FuncCALL complexity rule. All I see in the description is "max complexity."
Other than those things, this looks like a great first effort. Congratulations!
Ann