AttributeError: module 'numpy' has no attribute 'complex'.
`np.complex` was a deprecated alias for the builtin `complex`. To avoid this error in existing code, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.
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
какие числа и наборы данных мне нужны для перебора наборов данных?
Я использую: [code]windows python version 3.10.0 datasets==2.21.0 numpy==1.24.4 [/code] Я пытался перебрать только что скачанный набор данных: [code]from datasets import load_dataset dataset = load_dataset("jacktol/atc-dataset", download_mode='force_redownload')
dataset['train'][0] [/code] и получил ошибку: [code]AttributeError: module 'numpy' has no attribute 'complex'. `np.complex` was a deprecated alias for the builtin `complex`. To avoid this error in existing code, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here. 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 [/code] какие числа и наборы данных мне нужны для перебора наборов данных?