본문 바로가기
반응형

오류4

[오류 해결] FutureWarning: The default value of regex will change from True to False in a future version. 수정 전 df['comment'] = df['comment'].str.replace('\(.+?!^♡~\)', '') 수정 후 df['comment'] = df['comment'].str.replace('\(.+?!^♡~\)', '',regex=True) 참고 : https://needneo.tistory.com/164 The default value of regex will change from True to False in a future version. Warning FutureWarning: The default value of regex will change from True to False in a future version. 정규표현식을 사용하는 구분에서 위와 같은 Warning이 떴다. 실.. 2022. 6. 10.
[오류 해결] AttributeError: 'Sequential' object has no attribute 'predict_classes' tensorflow 버전 2.6이후로 predict_classes가 없기 때문에 발생하는 오류라고 한다. 따라서 predict_classes 대신 다음 코드로 대체하면 된다. # 오류 발생 predicted = model.predict_classes(token_list, verbose=0) # 오류 해결 y_prob = model.predict(token_list, verbose=0) predicted = y_prob.argmax(axis=-1) 출처 : https://stackoverflow.com/questions/68776790/model-predict-classes-is-deprecated-what-to-use-instead 2021. 10. 24.
[오류 해결] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 파이참에서 tensorflow를 import하는 도중 아래와 같은 오류가 발생하였다. W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. 구글링을 통해 오류를 해결할 수 있었다. 1. CUDA Toolkit 11.0 설치 cudart64_110.dll을 찾을 수.. 2021. 10. 20.
[오류 해결] ImportError: cannot import name 'to_categorical' from 'keras.utils' 위와 같은 오류가 났을 경우 from keras.utils import to_categorical 대신 from tensorflow.keras.utils import to_categorical을 사용하면 된다. 출처 : https://stackoverflow.com/questions/67018079/error-in-from-keras-utils-import-to-categorical 2021. 8. 31.
반응형