mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-14 12:14:36 +01:00
Remove unnecessary code in 03_classification
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user