Commit 1affd87e authored by 郭羽's avatar 郭羽

service model 优化

parent 3855baf5
...@@ -149,7 +149,7 @@ def addItemFeatures(itemDF,dataVocab,multi_col_vocab): ...@@ -149,7 +149,7 @@ def addItemFeatures(itemDF,dataVocab,multi_col_vocab):
new_c = ITEM_PREFIX + col new_c = ITEM_PREFIX + col
dataVocab[new_c] = list(set(itemDF[col].tolist())) dataVocab[new_c] = list(set(itemDF[col].tolist()))
itemDF[new_c] = itemDF[col] itemDF[new_c] = itemDF[col]
itemDF = itemDF.drop(columns=[onehot_col]) itemDF = itemDF.drop(columns=onehot_col)
for c in multi_col: for c in multi_col:
multi_col_vocab[c] = list(set(itemDF[c].tolist())) multi_col_vocab[c] = list(set(itemDF[c].tolist()))
...@@ -646,7 +646,8 @@ def parseSource(_source): ...@@ -646,7 +646,8 @@ def parseSource(_source):
sku_show_tags_list = [] sku_show_tags_list = []
sku_price_list = [0.0] sku_price_list = [0.0]
for sku in sku_list: for sku in sku_list:
sku_tags_list += sku.setdefault("sku_tags_id",[]) sku_tags_list += sku.setdefault("sku_tags",[])
# sku_tags_list += sku.setdefault("sku_tags_id",[])
sku_show_tags_list.append(sku.setdefault("show_project_type_name","")) sku_show_tags_list.append(sku.setdefault("show_project_type_name",""))
sku_price_list.append(sku.setdefault("price",0.0)) sku_price_list.append(sku.setdefault("price",0.0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment