Skip to content

Commit

Permalink
using np.append
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaaaanquish committed Mar 6, 2020
1 parent af9760f commit bcaf990
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nishika/data/tasks/make_feature_data.py
Expand Up @@ -48,4 +48,7 @@ def run(self):
scdv_f, tf_f, lda_f, data_f, tft_f, bert_f, word_f = add_nlp_feature(self.load('test'), self.load('scdv'), self.load('tfidf'), self.load('lda'),
self.load('wf'), self.tfidf_top_k, self.train_cols, self.load('bert'), self.words)

self.dump([np.concatenate([scdv_f, tf_f, lda_f, data_f, tft_f, bert_f, word_f], 1)])
self.dump([
np.append(np.append(np.append(np.append(np.append(np.append(x, y), z), w), k), b), f)
for x, y, z, w, k, b, f in zip(scdv_f, tf_f, lda_f, data_f, tft_f, bert_f, word_f)
])

0 comments on commit bcaf990

Please sign in to comment.