Two code errors in Lecture 3 Notes (probably due to Flux library changes)
MatthewAHarvey opened this issue · comments
Suggest Correction
NN[1].weights # The W matrix of the first layer
produces ERROR: type Dense has no field weights:
I think the line should read
NN[1].weight # The W matrix of the first layer
(weight instead of weights)
p = params(NN)
Produces ERROR: UndefVarError: params not defined
I don't think Flux is exposing params
with the using Flux
command any more so I think the line should now read
p = Flux.params(NN)
Those screenshots are taken from https://book.sciml.ai/notes/03/