Python
-
scikit-learn GridSearchCV ConvergenceWarning 끄기문제해결 2023. 3. 13. 14:36
먼저 아래는 일반적인 해결법들 1. ignore_warnings from sklearn.exceptions import ConvergenceWarning from sklearn.utils.testing import ignore_warnings @ignore_warnings(category=ConvergenceWarning) def ~(~): 모듈 앞에서 위와 같이 사용 2. filterwarnings, simplefilter import warnings from sklearn.exceptions import ConvergenceWarning with warnings.catch_warnings(): warnings.filterwarnings('ignore', 'Solver terminated early.*..