본문 바로가기

Issues & Troubleshooting/[Python]

[Python] .npy 파일 불러올 때 에러 처리 ValueError: Object arrays cannot be loaded when allow_pickle=False

import numpy as np

X_train, X_test, y_train, y_test = np.load('.ndy file', allow_pickle=True)

 

해결법

allow_pickle에 True 값을 전달한다.