Hỏi & Đáp
XGboost와 LightGBM Feature importance 관련 질문드립니다.
답변 주셔서 감사합니다.
- Lượt thích
- 0
- Số bình luận
- 2
- Lượt xem
- 684
Hỏi & Đáp
답변 주셔서 감사합니다.
Hỏi & Đáp
아래와 같이 변형하셔서 적용하시면 될 듯 싶습니다.. 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))