"""
Created on July 13, 2020
Updated on May 18, 2021

input feature columns: sparseFeature, denseFeature

@author: <NAME>(<EMAIL>)
"""


def sparseFeature(feat, feat_num, embed_dim=4):
    """
    create dictionary for sparse feature
    :param feat: feature name
    :param feat_num: the total number of sparse features that do not repeat
    :param embed_dim: embedding dimension
    :return:
    """
    return {'feat_name': feat, 'feat_num': feat_num, 'embed_dim': embed_dim}


def denseFeature(feat):
    """
    create dictionary for dense feature
    :param feat: dense feature name
    :return:
    """
    return {'feat_name': feat}
"""
Created on July 13, 2020
Updated on May 18, 2021

input feature columns: sparseFeature, denseFeature

@author: <NAME>(<EMAIL>)
"""


def sparseFeature(feat, feat_num, embed_dim=4):
    """
    create dictionary for sparse feature
    :param feat: feature name
    :param feat_num: the total number of sparse features that do not repeat
    :param embed_dim: embedding dimension
    :return:
    """
    return {'feat_name': feat, 'feat_num': feat_num, 'embed_dim': embed_dim}


def denseFeature(feat):
    """
    create dictionary for dense feature
    :param feat: dense feature name
    :return:
    """
    return {'feat_name': feat}
Created on July 13, 2020 Updated on May 18, 2021  input feature columns: sparseFeature, denseFeature  @author: <NAME>(<EMAIL>) create dictionary for sparse feature     :param feat: feature name     :param feat_num: the total number of sparse features that do not repeat     :param embed_dim: embedding dimension     :return: create dictionary for dense feature     :param feat: dense feature name     :return: