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

Before Change


        lbe = LabelEncoder()
        data[feat] = lbe.fit_transform(data[feat])
    // 2.count //unique features for each sparse field
    sparse_feature_dim = {feat: data[feat].nunique()
                          for feat in sparse_features}
    // 3.generate input data for model
    train, test = train_test_split(data, test_size=0.2)
    train_model_input = [train[feat].values for feat in sparse_feature_dim]
    test_model_input = [test[feat].values for feat in sparse_feature_dim]

After Change


        lbe = LabelEncoder()
        data[feat] = lbe.fit_transform(data[feat])
    // 2.count //unique features for each sparse field
    sparse_feat_list = [SingleFeat(feat,data[feat].nunique()) for feat in sparse_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_feat_list]
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_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:


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: