H
H
HelpPeople2020-06-30 11:43:59
Python
HelpPeople, 2020-06-30 11:43:59

Hi all. There is a book (Creating a Neron Network). And I get an error, do I copy everything from it?

The book is called "Building a Neural Network" by Tariq Rashid. I have an example of a task on page 148.
Here is the code itself

- import matplotlib.pyplot
%matplotlib inline
matplotlib.pyplot.imshow(a, interpolation="nearest")

And here is the

error - NameError Traceback (most recent call last)
in
----> 1 matplotlib.pyplot.imshow( a, interpolation="nearest")

NameError: name 'a' is not defined

I am a beginner and a book for beginners. By Tariq Rashid. I installed python from the official site and top anaconda like that. I launch jupiter through anaconda. Sorry, I'm new and I'm learning on my own. Is it okay to ask questions like this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Gornostaev, 2020-06-30
@sergey-gornostaev

5efb0682c9e8e648323904.jpeg

S
Sergey Tikhonov, 2020-06-30
@tumbler

Take a book about python first. Because learning "neglyadya" from non-working examples is a so-so idea.

S
Sergey Karbivnichy, 2020-06-30
@hottabxp

Bug in Python 3.6 (Jupyter Notebook)?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question