dcf583f15d08415d4e1972d44c250a5f13f6b10c,examples/run_multivalue_movielens_hash.py,,,#,8

Before Change



    fixlen_feature_columns = [SparseFeat(feat, data[feat].nunique() * 5,embedding_dim=4, use_hash=True, dtype="string")
                              for feat in sparse_features]
    varlen_feature_columns = [VarLenSparseFeat("genres", maxlen=max_len,vocabulary_size=100,embedding_dim=4,combiner= "mean", use_hash=True,
                                               dtype="string")]  // Notice : value 0 is for padding for sequence input feature
    linear_feature_columns = fixlen_feature_columns + varlen_feature_columns
    dnn_feature_columns = fixlen_feature_columns + varlen_feature_columns
    feature_names = get_feature_names(linear_feature_columns + dnn_feature_columns)

After Change


    fixlen_feature_columns = [SparseFeat(feat, data[feat].nunique() * 5, embedding_dim=4, use_hash=True, dtype="string")
                              for feat in sparse_features]
    varlen_feature_columns = [
        VarLenSparseFeat(SparseFeat("genres", vocabulary_size=100, embedding_dim=4, use_hash=True, dtype="string"),
                         maxlen=max_len, combiner="mean",
                         )]  // Notice : value 0 is for padding for sequence input feature
    linear_feature_columns = fixlen_feature_columns + varlen_feature_columns
    dnn_feature_columns = fixlen_feature_columns + varlen_feature_columns
    feature_names = get_feature_names(linear_feature_columns + dnn_feature_columns)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: shenweichen/DeepCTR
Commit Name: dcf583f15d08415d4e1972d44c250a5f13f6b10c
Time: 2020-01-27
Author: wcshen1994@163.com
File Name: examples/run_multivalue_movielens_hash.py
Class Name:
Method Name:


Project Name: shenweichen/DeepCTR
Commit Name: dcf583f15d08415d4e1972d44c250a5f13f6b10c
Time: 2020-01-27
Author: wcshen1994@163.com
File Name: examples/run_dien.py
Class Name:
Method Name: get_xy_fd


Project Name: shenweichen/DeepCTR
Commit Name: dcf583f15d08415d4e1972d44c250a5f13f6b10c
Time: 2020-01-27
Author: wcshen1994@163.com
File Name: examples/run_din.py
Class Name:
Method Name: get_xy_fd