Ng Wai Foong
Mar 9, 2021

--

Hi,

If you are using the same script as my tutorial, SchellingAgent only has the following attributes:

- pos

- type

The error simply means that the SchellingAgent object has no attribute called types.

Either

1) it is a typo in the code to access `type` instead of `types`, or

2) you have not define the types attribute in your SchellingAgent class.

Do let me know if this is not the case. Thanks

--

--

Ng Wai Foong
Ng Wai Foong

Written by Ng Wai Foong

Senior AI Engineer@Yoozoo | Content Writer #NLP #datascience #programming #machinelearning | Linkedin: https://www.linkedin.com/in/wai-foong-ng-694619185/

No responses yet