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
- A list of 3D tensor with shape: ``(batch_size,1,embedding_size)``.
274
+
- 3D tensor with shape: ``(batch_size,field_size,embedding_size)``.
275
275
276
276
Output shape
277
-
- 2D tensor with shape: ``(batch_size, embedding_size * field_num)``.
277
+
- 2D tensor with shape: ``(batch_size,field_size * embedding_size)``.
278
278
279
279
Arguments
280
280
- **tau** : Positive float, the temperature coefficient to control
281
281
distribution of field-wise gating unit.
282
282
283
-
- **seed** : A Python integer to use as random seed.
284
-
285
283
References
286
284
- [Enhancing Explicit and Implicit Feature Interactions via Information Sharing for Parallel Deep CTR Models.](https://dlp-kdd.github.io/assets/pdf/DLP-KDD_2021_paper_12.pdf)
287
285
"""
288
286
289
-
def__init__(self, tau=0.1, **kwargs):
287
+
def__init__(self, tau=1.0, **kwargs):
290
288
iftau==0:
291
-
raiseValueError("RegulationLayer tau can not be zero.")
289
+
raiseValueError("RegulationModule tau can not be zero.")
Copy file name to clipboardExpand all lines: deepctr/layers/interaction.py
+19-24Lines changed: 19 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -1493,48 +1493,45 @@ def get_config(self):
1493
1493
returnconfig
1494
1494
1495
1495
1496
-
classBridgeLayer(Layer):# ridge
1497
-
"""AttentionPoolingLayer layer used in EDCN
1496
+
classBridgeModule(Layer):
1497
+
"""Bridge Module used in EDCN
1498
1498
1499
1499
Input shape
1500
-
- A list of 3D tensor with shape: ``(batch_size,1,embedding_size)``. Its length is ``number of subnetworks``.
1500
+
- A list of two 2D tensor with shape: ``(batch_size, units)``.
1501
1501
1502
1502
Output shape
1503
-
- 2D tensor with shape: ``(batch_size, embedding_size)``.
1503
+
- 2D tensor with shape: ``(batch_size, units)``.
1504
1504
1505
1505
Arguments
1506
-
- **activation**: Activation function to use.
1507
-
1508
-
- **l2_reg**: float between 0 and 1. L2 regularizer strength applied to the kernel weights matrix.
1506
+
- **bridge_type**: The type of bridge interaction, one of 'pointwise_addition', 'hadamard_product', 'concatenation', 'attention_pooling'
1509
1507
1510
-
- **seed**: A Python integer to use as random seed.
1508
+
- **activation**: Activation function to use.
1511
1509
1512
1510
References
1513
1511
- [Enhancing Explicit and Implicit Feature Interactions via Information Sharing for Parallel Deep CTR Models.](https://dlp-kdd.github.io/assets/pdf/DLP-KDD_2021_paper_12.pdf)
0 commit comments