오늘의 인기 글
최근 글
최근 댓글
Today
Total
05-19 00:00
관리 메뉴

우노

[ML] Xgboost Error 해결 방법 본문

AI/Machine Learning

[ML] Xgboost Error 해결 방법

운호(Noah) 2021. 1. 4. 12:37

에러

WARNING: src/objective/regression_obj.cu:152: reg:linear is now deprecated in favor of reg:squarederror.

해결 방법

  • 회귀 모델 매개 변수 objective = 'reg:lineaqr' 을 'reg:squarederror'로 변경

  •   xg_reg = xgb.XGBRegressor(objective='reg:squarederror', colsample_bytree = 0.3, learning_rate = 0.1, max_depth = 5, alpha = 10, n_estimators = 10)
Comments