8182ea386e6529a1a2294d8e2d33fc040d0cbfb2,deepctr/inputs.py,,get_linear_logit,#,153

Before Change


    _, dense_input_list = input_from_feature_columns(features,feature_columns,1,l2_reg,init_std,seed,prefix=prefix)

    if len(linear_emb_list[0]) > 1:
        linear_term = concat_fun([add(linear_emb) for linear_emb in linear_emb_list])
    elif len(linear_emb_list[0]) == 1:
        linear_term = concat_fun([linear_emb[0] for linear_emb in linear_emb_list])
    else:
        linear_term = None

    if len(dense_input_list) > 0:
        dense_input__ = dense_input_list[0] if len(
            dense_input_list) == 1 else Concatenate()(dense_input_list)
        linear_dense_logit = Dense(
            units, activation=None, use_bias=False, kernel_regularizer=l2(l2_reg))(dense_input__)
        if linear_term is not None:
            linear_term = add([linear_dense_logit, linear_term])
        else:
            linear_term = linear_dense_logit

    return linear_term

def embedding_lookup(sparse_embedding_dict,sparse_input_dict,sparse_feature_columns,return_feat_list=(), mask_feat_list=()):
    embedding_vec_list = []
    for fc in sparse_feature_columns:

After Change


            raise NotImplementedError
        linear_logit_list.append(linear_logit)

    return concat_fun(linear_logit_list)

def embedding_lookup(sparse_embedding_dict,sparse_input_dict,sparse_feature_columns,return_feat_list=(), mask_feat_list=()):
    embedding_vec_list = []
    for fc in sparse_feature_columns:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: shenweichen/DeepCTR
Commit Name: 8182ea386e6529a1a2294d8e2d33fc040d0cbfb2
Time: 2019-07-21
Author: wcshen1994@163.com
File Name: deepctr/inputs.py
Class Name:
Method Name: get_linear_logit


Project Name: craffel/mir_eval
Commit Name: 10f51a7713242b65cd4c6ed89f644631fb5ef583
Time: 2014-03-29
Author: craffel@gmail.com
File Name: mir_eval/util.py
Class Name:
Method Name: intervals_to_boundaries


Project Name: matthewwithanm/django-imagekit
Commit Name: 5718c304cfd3a8f0e59ba918ebf9e485d4edc738
Time: 2011-09-21
Author: matthew@exanimo.com
File Name: imagekit/fields.py
Class Name: BoundImageSpec
Method Name: _suggested_extension