Skip to content

Instantly share code, notes, and snippets.

@kdhfred
Created June 6, 2019 08:52
Show Gist options
  • Save kdhfred/56fff1bb6bd804b760c69f8bd9a473ec to your computer and use it in GitHub Desktop.
Save kdhfred/56fff1bb6bd804b760c69f8bd9a473ec to your computer and use it in GitHub Desktop.
# 위의 KMeans Cluster의 번호에 따른 라벨링
# ML이다보니 cluster 번호는 그때그때 달라질 수 있음
label_map = {
'뷰티': {
'렌즈': [157],
'헤어': [78, 325, 494],
'성형': [77],
'다이어트': [36, 64, 244, 334],
'화장': [17, 39, 42, 45, 46, 48, 67, 62, 75, 88, 114, 129, 135, 171, 197, 212, 233, 271, 339, 362, 365, 396, 515],
'피부': [243, 277],
'향수': [327],
'네일': [204],
},
'패션': {
'옷': [32, 51, 143, 173, 242, 257, 259, 286, 390, 393, 86],
'신발': [47, 111, 351, 502],
'아우터': [53, 113],
'가방': [198, 324],
'악세사리': [284, 513],
'핸드폰': [149, 183, 216, 151],
'쇼핑몰': [31, 229]
},
'라이프스타일':{
'라이프스타일': [50, 112, 116, 220],
'보정': [38],
},
'중고': [241, 299, 375],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment