Commit 38114fed authored by 赵威's avatar 赵威

update tractate feature

parent b75a4cda
...@@ -127,7 +127,7 @@ TRACTATE_COLUMNS = [ ...@@ -127,7 +127,7 @@ TRACTATE_COLUMNS = [
"service_city", "service_city",
"recommend_service_id", "recommend_service_id",
"recommend_service_city", "recommend_service_city",
"recommend_service_price", # "recommend_service_price",
] ]
INT_COLUMNS = [ INT_COLUMNS = [
...@@ -295,7 +295,7 @@ CATEGORICAL_COLUMNS = [ ...@@ -295,7 +295,7 @@ CATEGORICAL_COLUMNS = [
"service_city", "service_city",
"recommend_service_id", "recommend_service_id",
"recommend_service_city", "recommend_service_city",
"recommend_service_price", # "recommend_service_price",
# "device_fd2", # "device_fd2",
# "device_sd2", # "device_sd2",
# "device_fs2", # "device_fs2",
...@@ -411,7 +411,7 @@ def tractate_feature_engineering(tractate_df): ...@@ -411,7 +411,7 @@ def tractate_feature_engineering(tractate_df):
df["is_related_service"] = df["is_related_service"].astype(int) df["is_related_service"] = df["is_related_service"].astype(int)
df["service_id"] = df["service_id"].astype(str) df["service_id"] = df["service_id"].astype(str)
df["recommend_service_id"] = df["recommend_service_id"].astype(str) df["recommend_service_id"] = df["recommend_service_id"].astype(str)
df["recommend_service_price"] = df["recommend_service_price"].astype(str) # df["recommend_service_price"] = df["recommend_service_price"].astype(str)
df["service_id"] = df["service_city"].fillna("-1") df["service_id"] = df["service_city"].fillna("-1")
df["service_city"] = df["service_city"].fillna("") df["service_city"] = df["service_city"].fillna("")
......
...@@ -170,7 +170,7 @@ _categorical_columns = [ ...@@ -170,7 +170,7 @@ _categorical_columns = [
"service_city", "service_city",
"recommend_service_id", "recommend_service_id",
"recommend_service_city", "recommend_service_city",
"recommend_service_price", # "recommend_service_price",
# "device_fd2", # "device_fd2",
# "device_sd2", # "device_sd2",
# "device_fs2", # "device_fs2",
......
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