(self, col_names, max_idxs, embedding_size=4, use_cuda=True)
fnames: feature names
        max_idxs: array of max_idx of each feature
        embedding_size: size of embedding
        dropout: prob for dropout, set None if no dropout
        use_cuda: bool, True for gpu or False for cpu
fnames: feature names
        max_idxs: array of max_idx of each feature
        embedding_size: size of embedding
        dropout: prob for dropout, set None if no dropout
        use_cuda: bool, True for gpu or False for cpu
fnames : feature names max_idxs : array of max_idx of each feature embedding_size : size of embedding dropout : prob for dropout set None if no dropout use_cuda : bool True for gpu or False for cpu
def __init__(self, col_names, max_idxs, embedding_size=4, use_cuda=True):
        """
        fnames: feature names
        max_idxs: array of max_idx of each feature
        embedding_size: size of embedding
        dropout: prob for dropout, set None if no dropout
        use_cuda: bool, True for gpu or False for cpu
        """
        super(Emb, self).__init__()
        self.static_emb = StEmb(col_names['static'], max_idxs['static'], embedding_size, use_cuda)
        self.ad_emb = StEmb(col_names['ad'], max_idxs['ad'], embedding_size, use_cuda)
        self.dynamic_emb = DyEmb(col_names['dynamic'], max_idxs['dynamic'], embedding_size, use_cuda)
        self.col_names = col_names
        self.col_length_name = [x + '_length' for x in col_names['dynamic']]
def __init__ ( self , col_names , max_idxs , embedding_size = 4 , use_cuda = True ) : super ( Emb , self ) . __init__ ( ) self . static_emb = StEmb ( col_names [ 'static' ] , max_idxs [ 'static' ] , embedding_size , use_cuda ) self . ad_emb = StEmb ( col_names [ 'ad' ] , max_idxs [ 'ad' ] , embedding_size , use_cuda ) self . dynamic_emb = DyEmb ( col_names [ 'dynamic' ] , max_idxs [ 'dynamic' ] , embedding_size , use_cuda ) self . col_names = col_names self . col_length_name = [ x + '_length' for x in col_names [ 'dynamic' ] ]