d97e9cd0c30980647f31c1003d6367e6a41c7124,examples/run_classification_criteo.py,,,#,7

Before Change



    // 2.count //unique features for each sparse field,and record dense feature field name

    sparse_feature_dict = {feat: data[feat].nunique()
                           for feat in sparse_features}
    dense_feature_list = dense_features

    // 3.generate input data for model

After Change



    // 2.count //unique features for each sparse field,and record dense feature field name

    sparse_feature_list = [SingleFeat(feat, data[feat].nunique())
                           for feat in sparse_features]
    dense_feature_list = [SingleFeat(feat, 0)
                          for feat in dense_features]

    // 3.generate input data for model

    train, test = train_test_split(data, test_size=0.2)
    train_model_input = [train[feat.name].values for feat in sparse_feature_list] + \
        [train[feat.name].values for feat in dense_feature_list]
    test_model_input = [test[feat.name].values for feat in sparse_feature_list] + \
        [test[feat.name].values for feat in dense_feature_list]

    // 4.Define Model,train,predict and evaluate
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_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:


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: