def get_feature(self, dataframe, col1, col2, latent_vector, name=''):
    features = np.zeros(shape=(len(dataframe), self.n_components), dtype=np.float32)
    self.columns = ['_'.join([name, col1, col2, str(i)]) for i in range(self.n_components)]
    for (i, val1) in enumerate(dataframe[col1]):
        features[i, :self.n_components] = latent_vector[val1]
    return pd.DataFrame(data=features, columns=self.columns)
def get_feature(self, dataframe, col1, col2, latent_vector, name=):
    features = np.zeros(shape=(len(dataframe), self.n_components), dtype=np.float32)
    self.columns = ['_'.join([name, col1, col2, str(i)]) for i in range(self.n_components)]
    for (i, val1) in enumerate(dataframe[col1]):
        features[i, :self.n_components] = latent_vector[val1]
    return pd.DataFrame(data=features, columns=self.columns)