Home
last modified time | relevance | path

Searched refs:most_common (Results 1 – 14 of 14) sorted by relevance

/external/python/cpython2/Lib/
Dcollections.py484 def most_common(self, n=None): member in Counter
621 items = ', '.join(map('%r: %r'.__mod__, self.most_common()))
/external/autotest/scheduler/
Dquery_managers.py175 hqe_hosts + special_task_hosts).most_common()
/external/python/cpython2/Doc/library/
Dcollections.rst55 >>> 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/
Dstatistics.py252 table = collections.Counter(iter(data)).most_common()
Dpprint.py428 items = object.most_common()
/external/tensorflow/tensorflow/examples/tutorials/word2vec/
Dword2vec_basic.py83 count.extend(collections.Counter(words).most_common(n_words - 1))
/external/python/cpython3/Doc/library/
Dcollections.rst236 >>> 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__.py573 def most_common(self, n=None): member in Counter
707 items = ', '.join(map('%r: %r'.__mod__, self.most_common()))
/external/python/cpython2/Lib/test/
Dtest_collections.py875 self.assertEqual(c.most_common(), [('a', 3), ('b', 2), ('c', 1)])
877 self.assertEqual(c.most_common(i),
/external/python/cpython3/Lib/test/
Dtest_collections.py1785 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__.py1759 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/
D2.7.rst1080 :meth:`~collections.Counter.most_common` returns the N most common
1089 >>> c.most_common(5)
/external/python/cpython2/Doc/whatsnew/
D2.7.rst1065 :meth:`~collections.Counter.most_common` returns the N most common
1074 >>> c.most_common(5)
/external/tensorflow/tensorflow/examples/udacity/
D5_word2vec.ipynb253 " count.extend(collections.Counter(words).most_common(vocabulary_size - 1))\n",