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

Method topk

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

2274 return reshape(self, shape, merge_chunks=merge_chunks, limit=limit)
2275
2276 def topk(self, k, axis=-1, split_every=None):
2277 """The top k elements of an array.
2278
2279 Refer to :func:`dask.array.topk` for full documentation.
2280
2281 See Also
2282 --------
2283 dask.array.topk : equivalent function
2284 """
2285 from dask.array.reductions import topk
2286
2287 return topk(self, k, axis=axis, split_every=split_every)
2288
2289 def argtopk(self, k, axis=-1, split_every=None):
2290 """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