Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/framework/
Dpython_memory_checker.py131 threshold, original_count_diff.most_common()))
137 '{}'.format(threshold, original_count_diff.most_common()))
/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/pigweed/pw_presubmit/py/pw_presubmit/
Dtools.py109 extensions = files.most_common(max_types)
/external/python/cpython3/Lib/
Dstatistics.py557 pairs = Counter(iter(data)).most_common(1)
577 counts = Counter(iter(data)).most_common()
Dpprint.py467 items = object.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/Doc/library/
Dcollections.rst239 >>> Counter(words).most_common(10)
293 .. method:: most_common([n])
297 :meth:`most_common` returns *all* elements in the counter.
300 >>> Counter('abracadabra').most_common(3)
340 c.most_common()[:-n-1:-1] # n least common elements
384 * The :meth:`~Counter.most_common` method requires only that the values be orderable.
/external/python/cpython3/Lib/collections/
D__init__.py600 def most_common(self, n=None): member in Counter
727 d = dict(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.py1999 self.assertEqual(c.most_common(), [('a', 3), ('b', 2), ('c', 1)])
2001 self.assertEqual(c.most_common(i),
/external/fonttools/Lib/fontTools/subset/
D__init__.py1815 mostCommon, _cnt = Counter(baselines.values()).most_common(1)[0]
1975 mostCommon, _cnt = Counter(prop.Properties.values()).most_common(1)[0]
/external/python/cpython2/Doc/whatsnew/
D2.7.rst1065 :meth:`~collections.Counter.most_common` returns the N most common
1074 >>> c.most_common(5)
/external/python/cpython3/Doc/whatsnew/
D2.7.rst1080 :meth:`~collections.Counter.most_common` returns the N most common
1089 >>> c.most_common(5)