Hi,
I would also like to state the same confusion. Jupyter seems a bit obscure, even though I have programmed in python quite a bit already.
Also, copy/pasting the code on page 25 picks up the comments (this is what my clipboard contains when I copy/paste the code from the PDF):
weight = 0.1
how we use the network to
predict something
def neural_network(input, weight): number_of_toes = [8.5, 9.5, 10, 9]
prediction = input * weight input = number_of_toes[0]
return prediction pred = neural_network(input,weight)
That obviously will not work in Jupyter or on the python interpreter cli.
Cheers,
Damien
|