Remove unnecessary code in 03_classification
parent
d7afbd511d
commit
508b22e84d
|
@ -2405,7 +2405,6 @@
|
||||||
" for word, count in word_count.items():\n",
|
" for word, count in word_count.items():\n",
|
||||||
" total_count[word] += min(count, 10)\n",
|
" total_count[word] += min(count, 10)\n",
|
||||||
" most_common = total_count.most_common()[:self.vocabulary_size]\n",
|
" most_common = total_count.most_common()[:self.vocabulary_size]\n",
|
||||||
" self.most_common_ = most_common\n",
|
|
||||||
" self.vocabulary_ = {word: index + 1 for index, (word, count) in enumerate(most_common)}\n",
|
" self.vocabulary_ = {word: index + 1 for index, (word, count) in enumerate(most_common)}\n",
|
||||||
" return self\n",
|
" return self\n",
|
||||||
" def transform(self, X, y=None):\n",
|
" def transform(self, X, y=None):\n",
|
||||||
|
|
Loading…
Reference in New Issue