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

Method argtopk

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

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

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

Source from the content-addressed store, hash-verified

2279 return topk(self, k, axis=axis, split_every=split_every)
2280
2281 def argtopk(self, k, axis=-1, split_every=None):
2282 """The indices of the top k elements of an array.
2283
2284 Refer to :func:`dask.array.argtopk` for full documentation.
2285
2286 See Also
2287 --------
2288 dask.array.argtopk : equivalent function
2289 """
2290 from dask.array.reductions import argtopk
2291
2292 return argtopk(self, k, axis=axis, split_every=split_every)
2293
2294 def astype(self, dtype, **kwargs):
2295 """Copy of the array, cast to a specified type.

Callers 1

test_topk_argtopk3Function · 0.80

Calls 1

argtopkFunction · 0.90

Tested by 1

test_topk_argtopk3Function · 0.64