-
Notifications
You must be signed in to change notification settings - Fork 332
/
autoint_on_movielens.config
161 lines (156 loc) · 2.91 KB
/
autoint_on_movielens.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
train_input_path: "examples/data/movielens_1m/movies_train_data"
eval_input_path: "examples/data/movielens_1m/movies_test_data"
model_dir: "examples/ckpt/autoint_on_movieslen_ckpt"
train_config {
log_step_count_steps: 100
optimizer_config: {
adam_optimizer: {
learning_rate: {
exponential_decay_learning_rate {
initial_learning_rate: 0.001
decay_steps: 1000
decay_factor: 0.5
min_learning_rate: 0.00001
}
}
}
use_moving_average: false
}
save_checkpoints_steps: 100
sync_replicas: True
num_steps: 2500
}
eval_config {
metrics_set: {
auc {}
}
metrics_set: {
gauc {
uid_field: 'user_id'
}
}
metrics_set: {
max_f1 {}
}
}
data_config {
input_fields {
input_name:'label'
input_type: INT32
}
input_fields {
input_name:'user_id'
input_type: INT32
}
input_fields {
input_name: 'movie_id'
input_type: INT32
}
input_fields {
input_name:'rating'
input_type: INT32
}
input_fields {
input_name: 'gender'
input_type: INT32
}
input_fields {
input_name: 'age'
input_type: INT32
}
input_fields {
input_name: 'job_id'
input_type: INT32
}
input_fields {
input_name: 'zip_id'
input_type: STRING
}
input_fields {
input_name: 'title'
input_type: STRING
}
input_fields {
input_name: 'genres'
input_type: STRING
}
input_fields {
input_name: 'year'
input_type: INT32
}
label_fields: 'label'
batch_size: 1024
num_epochs: 1
prefetch_size: 32
input_type: CSVInput
separator: '\t'
}
feature_config: {
features: {
input_names: 'user_id'
feature_type: IdFeature
embedding_dim: 16
hash_bucket_size: 12000
}
features: {
input_names: 'movie_id'
feature_type: IdFeature
embedding_dim: 16
hash_bucket_size: 6000
}
features: {
input_names: 'gender'
feature_type: IdFeature
embedding_dim: 16
num_buckets: 2
}
features: {
input_names: 'job_id'
feature_type: IdFeature
embedding_dim: 16
num_buckets: 21
}
features: {
input_names: 'age'
feature_type: IdFeature
embedding_dim: 16
num_buckets: 7
}
features: {
input_names: 'genres'
feature_type: TagFeature
separator: '|'
embedding_dim: 16
hash_bucket_size: 100
}
features: {
input_names: 'year'
feature_type: IdFeature
embedding_dim: 16
num_buckets: 36
}
}
model_config: {
model_class: 'AutoInt'
feature_groups: {
group_name: 'all'
feature_names: 'user_id'
feature_names: 'movie_id'
feature_names: 'job_id'
feature_names: 'age'
feature_names: 'gender'
feature_names: 'year'
feature_names: 'genres'
wide_deep: DEEP
}
autoint {
multi_head_num: 2
multi_head_size: 32
interacting_layer_num: 3
l2_regularization: 1e-4
}
embedding_regularization: 1e-4
}
export_config {
multi_placeholder: false
}