Searched refs:most_common (Results 1 – 13 of 13) sorted by relevance
/external/tensorflow/tensorflow/python/framework/ |
D | python_memory_checker.py | 131 threshold, original_count_diff.most_common())) 137 '{}'.format(threshold, original_count_diff.most_common()))
|
/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/pigweed/pw_presubmit/py/pw_presubmit/ |
D | tools.py | 109 extensions = files.most_common(max_types)
|
/external/python/cpython3/Lib/ |
D | statistics.py | 557 pairs = Counter(iter(data)).most_common(1) 577 counts = Counter(iter(data)).most_common()
|
D | pprint.py | 467 items = object.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/Doc/library/ |
D | collections.rst | 239 >>> 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__.py | 600 def most_common(self, n=None): member in Counter 727 d = dict(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 | 1999 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__.py | 1815 mostCommon, _cnt = Counter(baselines.values()).most_common(1)[0] 1975 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)
|