Remove unnecessary code in 03_classification

main
Ian Beauregard 2020-08-11 20:29:05 -04:00 committed by GitHub
parent d7afbd511d
commit 508b22e84d
1 changed files with 0 additions and 1 deletions

View File

@ -2405,7 +2405,6 @@
" for word, count in word_count.items():\n",
" total_count[word] += min(count, 10)\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",
" return self\n",
" def transform(self, X, y=None):\n",