강의

멘토링

커뮤니티

Inflearn Community Q&A

gwiheo0240's profile image
gwiheo0240

asked

[Revised Edition] The Complete Guide to Python Machine Learning

Wisconsin Breast Cancer Prediction Using LightGBM

plot importance 오류

Written on

·

322

0

'Rectangle' object has no property 'feature_names'

위 오류가 납니다.

아래 코드 실행시,

plot_importance(lgbm_wrapper, ax=ax, feature_names=dataset.feature_names)

머신러닝 배워볼래요? 통계python

Answer 1

0

dooleyz3525님의 프로필 이미지
dooleyz3525
Instructor

안녕하십니까,

features_names=dataset.feature_names 가 오타입니다. 제가 뭐 테스트 할려고 넣었었는데 그게 그대로 코드로 실렸습니다. 해당 파라미터를 plot_importance()에서 삭제하시면 될 것입니다.

감사합니다.

gwiheo0240's profile image
gwiheo0240

asked

Ask a question