inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

[퇴근후딴짓] 빅데이터 분석기사 실기 (작업형1,2,3)

피처 엔지니어링

5회 2형 lightgbm질문

해결된 질문

379

DataAnonymous

작성한 질문수 8

0

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

python 머신러닝 빅데이터 pandas 빅데이터분석기사

답변 1

0

퇴근후딴짓

verbose=-1 값을 설정해 주세요!

에러는 아니고 버전이 올라가면 자동출력되고 있어요!

lgb.LGBMRegressor(n_estimators=150, max_depth=4, random_state=42, verbose=-1)

수강 연장 가능 여부 문의

0

22

1

강의 구매했는데 교재 필수일까요

0

23

2

수강기간 연장 가부 문의드립니다.

0

21

2

수강기간 연장이 가능한지 양해를 구하며 문의를 드립니다.

0

27

2

작업형2 모의문제2에서 drop이랑 인코딩

0

31

2

인코딩을 다 꼭 해봐야하는지

0

39

2

안녕하세요? 강사님 질문있습니다.(인코딩관련)

0

57

2

이진분류에서 양성 클래스가 0일 때 평가 방법

0

46

2

원핫인코딩 전 train과 test 병합여부

0

50

2

수강기간 연장

0

69

2

29강 작업2형의 이상치 처리

0

65

2

수강기간 연장 문의드립니다!

0

65

2

9월에 실기출제기준 개정내역에 신설된부분

0

55

1

작업형2 모의문제2 결과값 관련 문의드립니다.

0

66

2

12회차 시험 실패 후 13회 도전 예정입니다.

0

55

1

random_state 값

0

73

2

강의 연장 문의 드립니다.

0

67

2

강의 연장 문의

0

61

2

오징어게임

0

70

1

object 컬럼이 여러 개인 경우 인코딩 전처리 방법

1

49

2

데이터 전처리 순서 관련

0

64

2

작업형2 모의문제 데이터 불러오기

0

62

2

강의 연장 부탁드립니다!

0

67

2

수강기간 연장 문의드립니다!

0

66

2