Searched refs:most_common (Results 1 – 14 of 14) sorted by relevance
/external/python/cpython2/Lib/ |
D | collections.py | 484 def most_common(self, n=None): member in Counter 621 items = ', '.join(map('%r: %r'.__mod__, self.most_common()))
|
/external/autotest/scheduler/ |
D | query_managers.py | 175 hqe_hosts + special_task_hosts).most_common()
|
/external/python/cpython2/Doc/library/ |
D | collections.rst | 55 >>> Counter(words).most_common(10) 104 .. method:: most_common([n]) 108 :func:`most_common` returns *all* elements in the counter. 111 >>> Counter('abracadabra').most_common(3) 149 c.most_common()[:-n-1:-1] # n least common elements 181 * The :meth:`most_common` method requires only that the values be orderable.
|
/external/python/cpython3/Lib/ |
D | statistics.py | 252 table = collections.Counter(iter(data)).most_common()
|
D | pprint.py | 428 items = object.most_common()
|
/external/tensorflow/tensorflow/examples/tutorials/word2vec/ |
D | word2vec_basic.py | 83 count.extend(collections.Counter(words).most_common(n_words - 1))
|
/external/python/cpython3/Doc/library/ |
D | collections.rst | 236 >>> Counter(words).most_common(10) 285 .. method:: most_common([n]) 289 :meth:`most_common` returns *all* elements in the counter. 292 >>> Counter('abracadabra').most_common(3) # doctest: +SKIP 332 c.most_common()[:-n-1:-1] # n least common elements 376 * The :meth:`~Counter.most_common` method requires only that the values be orderable.
|
/external/python/cpython3/Lib/collections/ |
D | __init__.py | 573 def most_common(self, n=None): member in Counter 707 items = ', '.join(map('%r: %r'.__mod__, self.most_common()))
|
/external/python/cpython2/Lib/test/ |
D | test_collections.py | 875 self.assertEqual(c.most_common(), [('a', 3), ('b', 2), ('c', 1)]) 877 self.assertEqual(c.most_common(i),
|
/external/python/cpython3/Lib/test/ |
D | test_collections.py | 1785 self.assertEqual(c.most_common(), [('a', 3), ('b', 2), ('c', 1)]) 1787 self.assertEqual(c.most_common(i),
|
/external/fonttools/Lib/fontTools/subset/ |
D | __init__.py | 1759 mostCommon, _cnt = Counter(baselines.values()).most_common(1)[0] 1907 mostCommon, _cnt = Counter(prop.Properties.values()).most_common(1)[0]
|
/external/python/cpython3/Doc/whatsnew/ |
D | 2.7.rst | 1080 :meth:`~collections.Counter.most_common` returns the N most common 1089 >>> c.most_common(5)
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.7.rst | 1065 :meth:`~collections.Counter.most_common` returns the N most common 1074 >>> c.most_common(5)
|
/external/tensorflow/tensorflow/examples/udacity/ |
D | 5_word2vec.ipynb | 253 " count.extend(collections.Counter(words).most_common(vocabulary_size - 1))\n",
|