Q&A
XGboost와 LightGBM Feature importance 관련 질문드립니다.
답변 주셔서 감사합니다.
- いいね数
- 0
- コメント数
- 2
- 閲覧数
- 684
Q&A
답변 주셔서 감사합니다.
Q&A
아래와 같이 변형하셔서 적용하시면 될 듯 싶습니다.. count_words_f = lambda x: len(str(x).split()) train['num_words'] = list(map(count_words_f, clean_train_reviews)) count_uniq_words_f = lambda x: len(set(str(x).split())) train['num_uniq_words'] = list(map(count_uniq_words_f, clean_train_reviews))