Prechádzať zdrojové kódy

增加新的特征值

xueyiming 3 dní pred
rodič
commit
61611ac6b6
2 zmenil súbory, kde vykonal 14 pridanie a 0 odobranie
  1. 8 0
      data_fields_v3.config
  2. 6 0
      widedeep_v12_1.py

+ 8 - 0
data_fields_v3.config

@@ -705,3 +705,11 @@
  user_vid_return_tags_3d STRING
  user_vid_return_tags_7d STRING
  user_vid_return_tags_14d STRING
+ apptype BIGINT
+ hour BIGINT
+ hour_quarter BIGINT
+ root_source_scene STRING
+ root_source_channel STRING
+ is_first_layer BIGINT
+ title_split STRING
+ profession STRING

+ 6 - 0
widedeep_v12_1.py

@@ -20,6 +20,8 @@ sparse_features = [
     "cid", "adid", "adverid",
     "region", "city", "brand",
     "vid", "cate1", "cate2",
+    "apptype", "hour", "hour_quarter", "root_source_scene", "root_source_channel", "is_first_layer", "title_split",
+    "profession"
 ]
 tag_features = [
     "user_vid_return_tags_2h", "user_vid_return_tags_1d", "user_vid_return_tags_3d",
@@ -127,6 +129,7 @@ for name in tag_features + seq_features:
   separator: ','
 }}""")
 
+
 def wide_and_deep():
     print("""
 model_config {
@@ -161,6 +164,7 @@ model_config {
   embedding_regularization: 1e-6
 }""")
 
+
 def deep_fm():
     print("""
 model_config {
@@ -196,6 +200,7 @@ model_config {
   embedding_regularization: 1e-6
 }""")
 
+
 def fm():
     print("""
 model_config {
@@ -221,6 +226,7 @@ model_config {
   embedding_regularization: 1e-5
 }""")
 
+
 def config_export():
     print("""
 export_config {