MCPcopy
hub / github.com/dask/dask / topk

Method topk

dask/array/core.py:2270–2281  ·  view source on GitHub ↗

The top k elements of an array. Refer to :func:`dask.array.topk` for full documentation. See Also -------- dask.array.topk : equivalent function

(self, k, axis=-1, split_every=None)

Source from the content-addressed store, hash-verified

2268 return reshape(self, shape, merge_chunks=merge_chunks, limit=limit)
2269
2270 def topk(self, k, axis=-1, split_every=None):
2271 """The top k elements of an array.
2272
2273 Refer to :func:`dask.array.topk` for full documentation.
2274
2275 See Also
2276 --------
2277 dask.array.topk : equivalent function
2278 """
2279 from dask.array.reductions import topk
2280
2281 return topk(self, k, axis=axis, split_every=split_every)
2282
2283 def argtopk(self, k, axis=-1, split_every=None):
2284 """The indices of the top k elements of an array.

Callers 1

test_topk_argtopk3Function · 0.45

Calls 1

topkFunction · 0.90

Tested by 1

test_topk_argtopk3Function · 0.36