You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[1] hen W, Zhan L, Ci Y, Lin Chttps://arxiv.org/pdf/1911.04690
7
+
[1] Chen W, Zhan L, Ci Y, Lin C. FLEN: Leveraging Field for Scalable CTR Prediction . arXiv preprint arXiv:1911.04690, 2019.(https://arxiv.org/pdf/1911.04690)
8
8
9
9
"""
10
10
11
-
12
11
fromitertoolsimportchain
12
+
13
13
importtensorflowastf
14
-
fromtensorflow.python.keras.layersimportFlatten
15
14
16
15
from ..inputsimportinput_from_feature_columns, get_linear_logit, build_input_features, combined_dnn_input
17
16
from ..layers.coreimportPredictionLayer, DNN
18
-
from ..layers.utilsimportconcat_func, add_func
19
17
from ..layers.interactionimportFieldWiseBiInteraction
18
+
from ..layers.utilsimportconcat_func, add_func
20
19
21
20
22
21
defFLEN(linear_feature_columns,
23
-
dnn_feature_columns,
24
-
l2_reg_linear=0.00001,
25
-
l2_reg_embedding=0.00001,
26
-
l2_reg_dnn=0.00001,
27
-
l2_reg_fw=0.00001,
28
-
init_std=0.0001,
29
-
seed=1024,
30
-
dnn_dropout=0.2,
31
-
dnn_activation='relu',
32
-
dnn_use_bn=True,
33
-
task='binary'):
34
-
"""Instantiates the DeepFM Network architecture.
22
+
dnn_feature_columns,
23
+
dnn_hidden_units=(128, 128),
24
+
l2_reg_linear=0.00001,
25
+
l2_reg_embedding=0.00001,
26
+
l2_reg_dnn=0,
27
+
init_std=0.0001,
28
+
seed=1024,
29
+
dnn_dropout=0.0,
30
+
dnn_activation='relu',
31
+
dnn_use_bn=False,
32
+
task='binary'):
33
+
"""Instantiates the FLEN Network architecture.
35
34
36
35
:param linear_feature_columns: An iterable containing all the features used by linear part of the model.
37
36
:param dnn_feature_columns: An iterable containing all the features used by deep part of the model.
37
+
:param dnn_hidden_units: list,list of positive integer or empty list, the layer number and units in each layer of deep net
38
38
:param l2_reg_linear: float. L2 regularizer strength applied to linear part
39
39
:param l2_reg_embedding: float. L2 regularizer strength applied to embedding vector
40
40
:param l2_reg_dnn: float. L2 regularizer strength applied to DNN
41
-
:param l2_reg_fw: float. L2 regularizer strength applied to fwfm
42
41
:param init_std: float,to use as the initialize std of embedding vector
43
42
:param seed: integer ,to use as random seed.
44
43
:param dnn_dropout: float in [0,1), the probability we will drop out a given DNN coordinate.
[Chen W, Zhan L, Ci Y, Lin C. FLEN: Leveraging Field for Scalable CTR Prediction[J]. arXiv preprint arXiv:1911.04690, 2019.](https://arxiv.org/pdf/1911.04690.pdf)
Copy file name to clipboardexpand all lines: docs/source/History.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
# History
2
+
- 03/15/2020 : [v0.7.4](https://github.com/shenweichen/DeepCTR/releases/tag/v0.7.4) released.Add [FLEN](./Features.html#flen-field-leveraged-embedding-network) and `FieldWiseBiInteraction`.
2
3
- 03/04/2020 : [v0.7.3](https://github.com/shenweichen/DeepCTR/releases/tag/v0.7.3) released.Fix the inconsistency of prediction results when the model is loaded with trained weights.
3
4
- 02/08/2020 : [v0.7.2](https://github.com/shenweichen/DeepCTR/releases/tag/v0.7.2) released.Fix some bugs.
4
5
- 01/28/2020 : [v0.7.1](https://github.com/shenweichen/DeepCTR/releases/tag/v0.7.1) released.Simplify [VarLenSparseFeat](./Features.html#varlensparsefeat),support setting weight_normalization.Fix problem of embedding size of `SparseFeat` in `linear_feature_columns`.
0 commit comments