Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Learners.ipynb Cell 4 throws a NameError "name 'perceptron_learner' is not defined" #1257

Open
Becker-Asano opened this issue Jun 1, 2022 · 0 comments

Comments

@Becker-Asano
Copy link

Setup

Win64, python 3.8.3, followed instructions in Readme.md to install dependencies

How to recreate problem

  • jupyter-notebook.exe .\Learners.ipynb
  • run all cells
  • second cell gives
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 raw_net = [InputLayer(input_size), DenseLayer(input_size, output_size)]

NameError: name 'input_size' is not defined

(ignored)

  • third code cell runs fine
  • fourth cell wirh pl = perceptron_learner(iris, epochs=500, learning_rate=0.01, verbose=50) results in this error:
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
Input In [4], in <cell line: 1>()
----> 1 pl = perceptron_learner(iris, epochs=500, learning_rate=0.01, verbose=50)

NameError: name 'perceptron_learner' is not defined

Question

Where is perceptron_learner supposed to be defined, if at all?

@Becker-Asano Becker-Asano changed the title Learners.ipynb Cell 4 throws a NameErrior "name 'perceptron_learner' is not defined" Learners.ipynb Cell 4 throws a NameError "name 'perceptron_learner' is not defined" Jun 1, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant