主因是以下的部份,NumPy 在 1.20 版本开始已经不再支援 np.object。应该直接使用 Python 的内建 object 类别来替代。
File ~\.conda\envs\autokeras_test4\lib\site-packages\autokeras\adapters\input_adapters.py:73 in convert_to_dataset if isinstance(dataset, np.ndarray) and dataset.dtype == np.object:
也就是直接去input_adapters.py,将if isinstance(dataset, np.ndarray) and dataset.dtype == np.object:
改为if isinstance(dataset, np.ndarray) and dataset.dtype == object:
就OK喽~(直接改为使用Python的object类别)