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
Copy file name to clipboardexpand all lines: deepctr/utils.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ def check(version):
40
40
'\nDeepCTR version {0} detected. Your version is {1}.\nUse `pip install -U deepctr` to upgrade.Changelog: https://github.com/shenweichen/DeepCTR/releases/tag/v{0}'.format(
41
41
latest_version, version))
42
42
exceptExceptionase:
43
-
print(e)
43
+
print("Please check the latest version manually on https://pypi.org/project/deepctr/#history")
key2index) +1,embedding_dim=4), maxlen= max_len, combiner='mean',weight_name='genres_weight')] # Notice : value 0 is for padding for sequence input feature
Copy file name to clipboardexpand all lines: docs/source/Features.md
+3-8
Original file line number
Diff line number
Diff line change
@@ -42,19 +42,14 @@ DNN based CTR prediction models usually have following 4 modules:
42
42
43
43
### VarLenSparseFeat
44
44
45
-
``VarLenSparseFeat`` is a namedtuple with signature ``VarLenSparseFeat(name, maxlen, vocabulary_size, embedding_dim, combiner,use_hash, dtype, length_name,weight_name, embedding_name, group_name)``
45
+
``VarLenSparseFeat`` is a namedtuple with signature ``VarLenSparseFeat(sparsefeat, maxlen, combiner,length_name,weight_name,weight_norm)``
46
46
47
-
-name : feature name
47
+
-sparsefeat : a instance of `SparseFeat`
48
48
- maxlen : maximum length of this feature for all samples
49
-
- vocabulary_size : number of unique feature values for sprase feature or hashing space when `use_hash=True`
50
-
- embedding_dim : embedding dimension
51
49
- combiner : pooling method,can be ``sum``,``mean`` or ``max``
52
-
- use_hash : defualt `False`.if `True` the input will be hashed to space of size `vocabulary_size`.
53
-
- dtype : default `float32`.dtype of input tensor.
54
50
- length_name : feature length name,if `None`, value 0 in feature is for padding.
55
51
- weight_name : default `None`. If not None, the sequence feature will be multiplyed by the feature whose name is `weight_name`.
56
-
- embedding_name : default `None`. If None, the `embedding_name` will be same as `name`.
57
-
- group_name : feature group of this feature.
52
+
- weight_norm : default `True`. Whether normalize the weight score or not.
Copy file name to clipboardexpand all lines: docs/source/History.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# History
2
+
- 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`.
2
3
- 11/24/2019 : [v0.7.0](https://github.com/shenweichen/DeepCTR/releases/tag/v0.7.0) released.Refactor [feature columns](./Features.html#feature-columns).Different features can use different `embedding_dim` and group-wise interaction is available by setting `group_name`.
3
-
4
4
- 11/06/2019 : [v0.6.3](https://github.com/shenweichen/DeepCTR/releases/tag/v0.6.3) released.Add `WeightedSequenceLayer` and support [weighted sequence feature input](./Examples.html#multi-value-input-movielens).
5
5
- 10/03/2019 : [v0.6.2](https://github.com/shenweichen/DeepCTR/releases/tag/v0.6.2) released.Simplify the input logic.
6
6
- 09/08/2019 : [v0.6.1](https://github.com/shenweichen/DeepCTR/releases/tag/v0.6.1) released.Fix bugs in `CCPM` and `DynamicGRU`.
0 commit comments