커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
AI 기반 암호화폐 data 분석 스터디
챕터 5
북마크
진*미
댓글
1
추천
0
조회수
2
조회수
2
답변 완료

아래와 같이 predict 에서 에러가 납니다.
TypeError                                 Traceback (most recent call last)
/tmp/ipython-input-2218855363.py in <cell line: 0>()
      1 #9. 학습 시 사용하지 않은 데이터로 가격 예측
----> 2 y_pred = reg.predict(X_test.values)


7 frames


/usr/local/lib/python3.12/dist-packages/keras/src/saving/serialization_lib.py in _retrieve_class_or_fn(name, registered_name, module, obj_type, full_config, custom_objects)
    808                 )
    809 
--> 810     raise TypeError(
    811         f"Could not locate {obj_type} '{name}'. "
    812         "Make sure custom classes are decorated with "

TypeError: Could not locate class 'AddOneDimension'. Make sure custom classes are decorated with `@keras.saving.register_keras_serializable()`. Full object config: {'module': 'autokeras.preprocessors.common', 'class_name': 'AddOneDimension', 'config': {}, 'registered_name': 'AddOneDimension'}

취소
 공유
취소
댓글 0
댓글 알림
나의얼굴