forked from batch-norm/xDeepFM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfig.py
49 lines (34 loc) · 978 Bytes
/
Config.py
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
"""
author : yang yiqing 2018年07月13日15:57:50
"""
# file
train_file = 'ex_data/dataset1.csv'
valid_file = 'ex_data/dataset2.csv'
test_file = 'ex_data/dataset3.csv'
train_save_file = 'ex_data/dataset1.txt'
valid_save_file = 'ex_data/dataset2.txt'
test_save_file = 'ex_data/dataset3.txt'
label_name = 'label'
# features
numeric_features = ['all_launch_count', 'last_launch', 'all_video_count', 'last_video', 'all_video_day',
'all_action_count', 'last_action',
'all_action_day', 'register_day']
single_features = ['register_type', 'device_type']
multi_features = []
num_embedding = True
single_feature_frequency = 10
multi_feature_frequency = 0
# model
FM_layer = True
DNN_layer = True
CIN_layer = False
use_numerical_embedding = False
embedding_size = 16
dnn_net_size = [128,64,32]
cross_layer_size = [10,10,10]
cross_direct = False
cross_output_size = 1
# train
batch_size = 4096
epochs = 4000
learning_rate = 0.01