aimacode / aima-python

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

Resolve #1270. Fixed variable name and missing import #1278

Open meloncruuush opened 1 year ago

meloncruuush commented 1 year ago

In the line print("attrnames (by default same as attrs):", iris.attrnames) the variable is misspelled, causing a problem.

1

After fixing the error, the code cell runs properly.

2

This fix allowed the code to keep the execution going, and another error popped up down the line.

3

This error was ther only because of a missing import. After adding it, it run just fine.

4

(By mistake I committed the notebook with all the output opened. I made another commit to fix it)