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



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
sparse_input = [data[feat.name].values for feat in sparse_feat_list]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

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: keras-team/keras
Commit Name: 97174dd298cf4b5be459e79b0181a124650d9148
Time: 2015-08-16
Author: francois.chollet@gmail.com
File Name: keras/layers/normalization.py
Class Name: BatchNormalization
Method Name: __init__


Project Name: keras-team/keras
Commit Name: a1161885d5d7a4a37ba58c7df5e7073850c6d1ea
Time: 2015-08-16
Author: francois.chollet@gmail.com
File Name: keras/preprocessing/text.py
Class Name: Tokenizer
Method Name: fit_on_texts


Project Name: keras-team/keras
Commit Name: 7386dff509604d2794df3c3c9af782cbe7b31447
Time: 2015-04-07
Author: francois.chollet@gmail.com
File Name: keras/preprocessing/text.py
Class Name: Tokenizer
Method Name: fit_on_texts


Project Name: evilsocket/pwnagotchi
Commit Name: 608aad482073205a4fcc2df9d525cfc811c1cfe2
Time: 2019-10-24
Author: evilsocket@gmail.com
File Name: pwnagotchi/ai/epoch.py
Class Name: Epoch
Method Name: observe