강의

멘토링

커뮤니티

Inflearn Community Q&A

kjh9502134603's profile image
kjh9502134603

asked

[Revised Edition] The Complete Guide to Python Machine Learning

Titanic Survivor Prediction with Scikit-learn - 02

LabelEncoder를 찾을 수가 없답니다.

Written on

·

433

0

module 'sklearn.preprocessing' has no attribute 'LabelEncorder'

안녕하세요 교수님 계속 이런 메세지가 뜨네요 ㅠ
통계머신러닝 배워볼래요? python

Answer 3

0

dooleyz3525님의 프로필 이미지
dooleyz3525
Instructor

from sklearn.preprocessing import LabelEncoder

le = LabelEncoder() 로 바꿔 주시면 될 것 같습니다.

0

kjh9502134603님의 프로필 이미지
kjh9502134603
Questioner

임포트를 사용했는데도 그러네요.

0

dooleyz3525님의 프로필 이미지
dooleyz3525
Instructor

안녕하십니까,

from sklearn.preprocessing import LabelEncoder 수행하시면 정상동작하시나요?

그럼 문제 없이 동작해야 합니다.

혹시 저 오류를 발생시킨 코드가 어떤것인지 올려 주실 수 있는지요? 그럼 확인이 가능할 것 같습니다.

감사합니다.

kjh9502134603's profile image
kjh9502134603

asked

Ask a question