What a Beautiful Data!

why /use_cat_names

by darami
use_cat_names = True
encoder = OneHotEncoder(use_cat_names = True)

이건 parameter다 그러니까 원핫 인코딩에서 1,2,3,4 하면 순서형 으로 인식하기 때문에 새로운 칼럼을 만들어줘서 true다 하는데 독특한 네임을 쓰고 싶었던 거! 아마 이거 만든사람이 고양이를 좋아했나 봐..😸🐱‍👤😾😿🙀

use_cat_names: bool

if True, category values will be included in the encoded column names. Since this can result in duplicate column names, duplicates are suffixed with ‘#’ symbol until a unique name is generated. If False, category indices will be used instead of the category values.

https://contrib.scikit-learn.org/category_encoders/onehot.html 

 

One Hot — Category Encoders 2.3.0 documentation

© Copyright 2016, Will McGinnis.

contrib.scikit-learn.org

무조건 왜? 그냥 간다 내 특성이 여기서 발휘!! 힘들지만 ㅠㅠ 한다 나 내가 누군뎅!!!!!!!!!!!!

하루에 스챌 하나씩은 뽀갠다!!

 

잊지 말기 

카테고리 인코더 원핫 인코더 코랩에서 쓰면 이거 설치

!pip install --upgrade category_encoders
from category_encoders import OneHotEncoder

블로그의 정보

다람

darami

활동하기