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

Typo in learning.ipynb #1270

Open IronLucario2012 opened 2 years ago

IronLucario2012 commented 2 years ago

In learning.ipynb, the attribute "attr_names" of the Dataset class is incorrectly spelled as "attrnames" in several places, which, when referenced in the code cells, causes an AttributeError as shown in the callback snipped below.

AttributeError                            Traceback (most recent call last)
Input In [7], in <cell line: 2>()
      1 print("attrs:", iris.attrs)
----> 2 print("attrnames (by default same as attrs):", iris.attrnames)
      3 print("target:", iris.target)
      4 print("inputs:", iris.inputs)

AttributeError: 'DataSet' object has no attribute 'attrnames'
Parthiv31 commented 1 year ago

May I work on this issue?