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
36
2
강의 내용 관련 질문드립니다~
0
34
2
수강 연장 문의
0
31
1
강의자료 일괄 다운로드
0
40
2
수강기간 연장 문의드립니다
0
27
1
list 문제 질문드립니다~
0
28
2
빅분기 실기 12회 재도전
0
39
1
강의 기간 연장 가능여부 검토 요청건
0
30
1
수강기간 연장 문의 드립니다
0
36
2
수강기간 연장 문의드립니다
0
46
2
질문이요
0
50
2
수강기간 연장 문의드립니다.
0
48
2
문제 3-2 질문드립니다
0
43
2
수강기간 연장 문의 드립니다.
0
57
2
변수, 칼럼 , df 구분
0
47
2
수강기간 연장 문의드립니다.
0
49
2
수강기간 연장 문의
0
46
2
수강기간 연장 문의드립니다.
0
40
2
수강기한 연장 문의
0
75
2
수강기간 연장 문의드립니다
0
56
2
결정트리에서 적절한 깊이 선택 후 시각화 과정에서 학습 데이터만 사용하는 이유
0
43
2
수강기간 연장 문의드립니다.
0
69
2
수강연장 문의
0
76
2
수강연장문의
0
53
2





