-
Notifications
You must be signed in to change notification settings - Fork 327
/
masknet_on_movielens.config
201 lines (196 loc) · 3.73 KB
/
masknet_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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
train_input_path: "examples/data/movielens_1m/movies_train_data"
eval_input_path: "examples/data/movielens_1m/movies_test_data"
model_dir: "examples/ckpt/masknet_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: 2000
sync_replicas: True
}
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: 'title'
feature_type: SequenceFeature
separator: ' '
embedding_dim: 16
hash_bucket_size: 10000
sequence_combiner: {
text_cnn: {
filter_sizes: [2, 3, 4]
num_filters: [16, 8, 8]
pad_sequence_length: 14
}
}
}
features: {
input_names: 'year'
feature_type: IdFeature
embedding_dim: 16
num_buckets: 36
}
}
model_config: {
model_name: 'MaskNet'
model_class: 'RankModel'
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
}
backbone {
blocks {
name: "mask_net"
inputs {
feature_group_name: "all"
}
keras_layer {
class_name: 'MaskNet'
masknet {
mask_blocks {
aggregation_size: 512
output_size: 256
}
mask_blocks {
aggregation_size: 512
output_size: 256
}
mask_blocks {
aggregation_size: 512
output_size: 256
}
mlp {
hidden_units: [512, 256]
}
}
}
}
concat_blocks: ['mask_net']
}
model_params {
l2_regularization: 1e-5
}
embedding_regularization: 1e-4
}
export_config {
multi_placeholder: false
}