You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: 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
Expected behavior
The text was updated successfully, but these errors were encountered:
Information
The problem arises in chapter:
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:
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 builtinobject
. To avoid this error in existing code, useobject
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
Expected behavior
The text was updated successfully, but these errors were encountered: