aimacode / aima-python

Python implementation of algorithms from Russell And Norvig's "Artificial Intelligence - A Modern Approach"
MIT License
8.07k stars 3.81k forks source link

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

Open Becker-Asano opened 2 years ago

Becker-Asano commented 2 years ago

Setup

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

How to recreate problem

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?