5회 2형 lightgbm질문
5회 2형 lightgbm으로 작성하면 아래와 같은 문구가 나타납니다. 혹시 어떤 부분이 잘못되었을까여??
< 코드 >
x_train = pd.get_dummies(x_train)
x_test = pd.get_dummies(x_test)from sklearn.model_selection import train_test_split
xx_train, xx_test, yy_train, yy_test = train_test_split(x_train, y_train, test_size = 0.2, random_state = 42)import lightgbm as lgb
model_g = lgb.LGBMRegressor(n_estimators = 150, max_depth = 4, random_state = 42)
model_g.fit(xx_train, yy_train)
pred_t_g = model_g.predict(xx_test)
< 에러 메세지 >
[LightGBM] [Warning] Found whitespace in feature_names, replace with underlines
[LightGBM] [Info] Auto-choosing row-wise multi-threading, the overhead of testing was 0.000399 seconds.
You can set force_row_wise=true to remove the overhead.
And if memory is not enough, you can set force_col_wise=true.
[LightGBM] [Info] Total Bins 395
[LightGBM] [Info] Number of data points in the train set: 3007, number of used features: 23
[LightGBM] [Info] Start training from score 12318.722980
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
[LightGBM] [Warning] No further splits with positive gain, best gain: -inf
답변 1
0
verbose=-1 값을 설정해 주세요!
에러는 아니고 버전이 올라가면 자동출력되고 있어요!
lgb.LGBMRegressor(n_estimators=150, max_depth=4, random_state=42, verbose=-1)
수강 신청 연장 문의드립니다.
0
13
1
작업형 1번문제... 환경관련
0
23
2
12회 기출은 언제 업데이트 될까요??
0
32
2
8/6 작성한 연장문의 질문글에 대한 재요청
0
36
2
수강기간 연장 문의
0
32
2
수강기간 연장문의
0
34
2
수강기간 연장 요청 문의드립니다
0
33
2
수강 기간 연장 문의
0
43
2
수강연장 가능 문의 (기간 약 한달반)
0
57
2
수강기간 연장 가능할까요 선생님
0
71
2
Section15. 수업에 사용하는 데이터 주소가 다 보이지 않아서 실습을 위한 데이터를 다운 받지 못하고 있습니다.
0
49
3
수강연장요청 문의
0
84
2
아무래도 다음 시험 연장은 어렵겠죠?
0
104
2
빅분기 12회 결과 관련 문의
0
110
1
책이랑 강의랑 순서나 예제가 다른것 같네요
0
79
2
수강연장 문의
0
102
2
재검토 요청 방법 좀 알려주셔요...-.-;;
0
102
2
12회 실기 질문(작업형 2)
0
89
2
뒤로가기 버튼 같은 것이 있나요?
0
63
1
강의 연장 문의
0
97
2
출력값 질문
0
69
2
수업노트가 어디에 있나요?
0
60
1
실기시험 제출관련
0
223
3
6.20 작업형 2 과적합
0
227
3





