Dl2 imdb.ipynb question


(Esteban J Guillen) #1

wd = 1e-7
wd = 0
learn.load_encoder(‘lm1_enc’)

In the imdb.ipynb notebook (in the create classifier section) the three lines displayed above are confusing to me. Why is wd set to 1e-7 then immediately set to 0? Is this a mistake?


(adrian) #2

@Esteban looks like it was probably that wd was tried first as one value, then the other value. The variable is overwritten by last time it is declared.