Description
Information
The problem arises in chapter:
- [ ***] Text Classification
Describe the bug
When I run this code below I get this error: AttributeError: module 'numpy' has no attribute 'object'. probably map function or dataset library has deprecated version of numpy use use np.object.
emotions_hidden = emotions_encoded.map(extract_hidden_states, batched=True)
To Reproduce
Steps to reproduce the behavior:
- I am getting this error when I run this code: emotions_hidden = emotions_encoded.map(extract_hidden_states, batched=True)
AttributeError Traceback (most recent call last)
Cell In[86], line 1
----> 1 emotions_hidden = emotions_encoded.map(extract_hidden_states, batched=True)
AttributeError: module 'numpy' has no attribute 'object'.
np.object
was a deprecated alias for the builtin object
. To avoid this error in existing code, use object
by itself. Doing this will not modify any behavior and is safe.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
add Codeadd Markdown