d97e9cd0c30980647f31c1003d6367e6a41c7124,examples/run_multivalue_movielens.py,,,#,16

Before Change



// 2.count //unique features for each sparse field and generate feature config for sequence feature

sparse_feature_dim = {feat: data[feat].nunique() for feat in sparse_features}
sequence_feature = [VarLenFeature("genres", len(key2index), max_len, "mean")]

// 3.generate input data for model
sparse_input = [data[feat].values for feat in sparse_feature_dim]

After Change



// 2.count //unique features for each sparse field and generate feature config for sequence feature

sparse_feat_list = [SingleFeat(feat, data[feat].nunique())
                    for feat in sparse_features]
sequence_feature = [VarLenFeat("genres", len(
    key2index) + 1, max_len, "mean")]  // Notice : value 0 is for padding for sequence input feature

// 3.generate input data for model
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: shenweichen/DeepCTR
Commit Name: d97e9cd0c30980647f31c1003d6367e6a41c7124
Time: 2019-01-24
Author: wcshen1994@163.com
File Name: examples/run_multivalue_movielens.py
Class Name:
Method Name:


Project Name: shenweichen/DeepCTR
Commit Name: d97e9cd0c30980647f31c1003d6367e6a41c7124
Time: 2019-01-24
Author: wcshen1994@163.com
File Name: examples/run_classification_criteo.py
Class Name:
Method Name:


Project Name: shenweichen/DeepCTR
Commit Name: d97e9cd0c30980647f31c1003d6367e6a41c7124
Time: 2019-01-24
Author: wcshen1994@163.com
File Name: examples/run_regression_movielens.py
Class Name:
Method Name: