MCPcopy Create free account
hub / github.com/dask/dask / topk

Method topk

dask/array/core.py:2265–2276  ·  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

2263 return reshape(self, shape, merge_chunks=merge_chunks, limit=limit)
2264
2265 def topk(self, k, axis=-1, split_every=None):
2266 """The top k elements of an array.
2267
2268 Refer to :func:`dask.array.topk` for full documentation.
2269
2270 See Also
2271 --------
2272 dask.array.topk : equivalent function
2273 """
2274 from dask.array.reductions import topk
2275
2276 return topk(self, k, axis=axis, split_every=split_every)
2277
2278 def argtopk(self, k, axis=-1, split_every=None):
2279 """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