📜  从一个热门编码器获取功能名称 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:02.150000             🧑  作者: Mango

代码示例1
# You can pass the list with original column names to get_feature_names:
encoder.get_feature_names(['Sex', 'AgeGroup'])

# output
# ['Sex_female', 'Sex_male', 'AgeGroup_0', 'AgeGroup_15',
#  'AgeGroup_30', 'AgeGroup_45', 'AgeGroup_60', 'AgeGroup_75']