inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

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

피처 엔지니어링

5회 2형 lightgbm질문

해결된 질문

363

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)

작업형 2에서 strafity 적용 유무

0

1

1

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

0

7

1

ols

0

9

2

2유형 작성관련 질문(일반 심화)

0

14

2

2유형 작성관련 질문

0

10

1

2유형 object컬럼 개수 다르면

0

14

2

코딩팡질문이요ㅠㅠ

0

14

2

관찰값과 기대값의 개념이 헷갈립니다.

0

12

2

작업형2 ID 컬럼 삭제 질문

0

20

2

2유형 작성관련 질문

0

11

1

memoryerror 질문

0

14

2

작업형 유형2 이렇게 고정 템플릿으로 가져가도 될까요?

0

15

1

ID 삭제 필수 인가요?

0

17

3

7회 기출문제 작업형1번 df 변환 후 저장되는 방식 질문

0

14

1

3 유형 귀무가설, 대립가설

0

19

2

인코딩 관련 질문 있습니다

0

21

2

작업형3 이원분산분석 sm에서불러오기 / anova_lm 차이

0

21

2

2유형 원핫인코딩 오류

0

22

2

시험장에서 주석 단축키 안될 때 많나요?

0

26

2

라벨인코딩 방식

0

24

2

test 재학습 관련

0

16

2

target 빈도 확인

0

17

2

작업형 2 연습문제 섹션 6

0

20

2

F1-score

0

19

2