AttributeError: 'super' object has no attribute '__sklearn_tags__'
RandomizedSearchCV를 이용해 xgboost모델을 하이퍼 파라미터 튜닝하려던 차에 위 에러가 떴다.
(Scikit-Learn version: 1.6.1 XGBoost version: 2.1.3)
에러 발생 원인은 Scikit-learn 1.6 버전에서 "tags" 관련 API가 변경되었기 때문이다. 사이킷런을 다운그레이드 해주면 에러 없이 실행된다!
<해결 방법>
!pip uninstall -y scikit-learn
원래 깔려있던 사이킷런을 uninstall하고
!pip install scikit-learn==1.3.1
1.3.1 버전의 사이킷런을 깔아주면 간단히 해결된다!
'Python > 오류' 카테고리의 다른 글
| [hanspell] 'result' 오류 없이 코랩에서 실행하기(2025년 실행 ok) (1) | 2025.01.27 |
|---|---|
| [ERROR] app-store-scraper 실행 시 Base - Something went wrong: 'latin-1' codec can't encode characters~ (0) | 2025.01.05 |