(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(StEmb, self).__init__()
        self.col_names = col_names
        self.max_idxs = max_idxs
        self.embedding_size = embedding_size
        self.use_cuda = use_cuda
        # initial layer
        self.embeddings = nn.ModuleList(
            [Meta_Embedding(max_idx + 1, self.embedding_size) for max_idx in self.max_idxs.values()])
def __init__ ( self , col_names , max_idxs , embedding_size = 4 , use_cuda = True ) : super ( StEmb , self ) . __init__ ( ) self . col_names = col_names self . max_idxs = max_idxs self . embedding_size = embedding_size self . use_cuda = use_cuda # initial layer self . embeddings = nn . ModuleList ( [ Meta_Embedding ( max_idx + 1 , self . embedding_size ) for max_idx in self . max_idxs . values ( ) ] )